Merge pull request #2688 from klivelinux/fix-master

fix menuconfig.py
This commit is contained in:
Bernard Xiong 2019-05-15 13:10:59 +08:00 committed by GitHub
commit 619c503537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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')