Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/56953 )
Change subject: scons: Hook up the kconfig guiconfig program.
......................................................................
scons: Hook up the kconfig guiconfig program.
Change-Id: I0563a2fb2d79cea5974aeaf65a400be5ee51dc63
---
M SConstruct
M site_scons/gem5_scons/kconfig.py
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index 3f6cfae..09dfbf8 100755
--- a/SConstruct
+++ b/SConstruct
@@ -211,6 +211,7 @@
kconfig_actions = (
'defconfig',
+ 'guiconfig',
'listnewconfig',
'menuconfig',
'setconfig',
@@ -641,6 +642,9 @@
error(f'Tried to defconfig, but {defconfig_key} not set.')
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)
diff --git a/site_scons/gem5_scons/kconfig.py
b/site_scons/gem5_scons/kconfig.py
index 0bad546..920101e 100644
--- a/site_scons/gem5_scons/kconfig.py
+++ b/site_scons/gem5_scons/kconfig.py
@@ -30,6 +30,7 @@
_kconfig_helpers = {
'DEFCONFIG_PY': 'defconfig.py',
+ 'GUICONFIG_PY': 'guiconfig.py',
'LISTNEWCONFIG_PY': 'listnewconfig.py',
'MENUCONFIG_PY': 'menuconfig.py',
'SETCONFIG_PY': 'setconfig.py',
@@ -70,6 +71,12 @@
'"${CONFIG_IN}"') != 0:
error("Failed to run defconfig")
+def guiconfig(env, base_kconfig, config_path, main_menu_text):
+ kconfig_env = _prep_env(env, base_kconfig, config_path)
+ kconfig_env['ENV']['MAIN_MENU_TEXT'] = main_menu_text
+ if kconfig_env.Execute('"${GUICONFIG_PY}" "${BASE_KCONFIG}"') != 0:
+ error("Failed to run guiconfig")
+
def listnewconfig(env, base_kconfig, config_path):
kconfig_env = _prep_env(env, base_kconfig, config_path)
# Provide a little visual separation between SCons output and
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/56953
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I0563a2fb2d79cea5974aeaf65a400be5ee51dc63
Gerrit-Change-Number: 56953
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s