[Tools] Add genconfig command in scons.

This commit is contained in:
bernard
2017-11-02 16:57:17 +08:00
parent b2057f506a
commit f08d1f5034
2 changed files with 42 additions and 0 deletions

View File

@@ -258,6 +258,16 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
and rtconfig.PLATFORM == 'gcc':
AddDepend('RT_USING_MINILIBC')
AddOption('--genconfig',
dest = 'genconfig',
action = 'store_true',
default = False,
help = 'Generate .config from rtconfig.h')
if GetOption('genconfig'):
from genconf import genconfig
genconfig()
exit(0)
# add comstr option
AddOption('--verbose',
dest='verbose',