fix menuconfig.py

This commit is contained in:
Unknown 2019-05-15 09:52:27 +08:00
parent 0dae909f66
commit c20bff531a
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
# 2018-07-31 weety Support pyconfig
import os
import re
import sys
import shutil
@ -75,7 +76,7 @@ def mk_rtconfig(filename):
if setting[1] == 'y':
rtconfig.write('#define %s\n' % setting[0])
else:
rtconfig.write('#define %s %s\n' % (setting[0], setting[1]))
rtconfig.write('#define %s %s\n' % (setting[0], re.findall(r"^.*?=(.*)$",line)[0]))
if os.path.isfile('rtconfig_project.h'):
rtconfig.write('#include "rtconfig_project.h"\n')