scons: Hook up the kconfig guiconfig program.

Change-Id: I0563a2fb2d79cea5974aeaf65a400be5ee51dc63
This commit is contained in:
Gabe Black
2022-02-18 00:52:43 -08:00
committed by Roger Chang
parent 91b3da016b
commit 51b8cfcede
2 changed files with 22 additions and 0 deletions

View File

@@ -261,6 +261,7 @@ Targets:
kconfig_actions = (
'defconfig',
'guiconfig',
'listnewconfig',
'menuconfig',
'setconfig',
@@ -294,6 +295,13 @@ Kconfig tools:
scons defconfig build/foo/bar build_opts/MIPS
guiconfig:
Opens the guiconfig editor which will let you view and edit config
values, and view help text. guiconfig runs as a graphical application.
scons guiconfig build/foo/bar
listnewconfig:
Lists config options which are new in the Kconfig and which are not
currently set in the existing config file.
@@ -839,6 +847,9 @@ for variant_path in variant_paths:
defconfig_path = makePathAbsolute(kconfig_args[0])
kconfig.defconfig(env, kconfig_file.abspath,
defconfig_path, config_file.abspath)
elif kconfig_action == 'guiconfig':
kconfig.guiconfig(env, kconfig_file.abspath, config_file.abspath,
variant_path)
elif kconfig_action == 'listnewconfig':
kconfig.listnewconfig(env, kconfig_file.abspath,
config_file.abspath)