Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/56951 )
Change subject: scons: Hook in the listnewconfig kconfig helper.
......................................................................
scons: Hook in the listnewconfig kconfig helper.
This helper lists config options which are new in the Kconfig and which
are not currently set in the config file.
Change-Id: I0c426d85c0cf0d2bdbac599845669165285a82a0
---
M SConstruct
M site_scons/gem5_scons/kconfig.py
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index 207d92b..3f6cfae 100755
--- a/SConstruct
+++ b/SConstruct
@@ -211,6 +211,7 @@
kconfig_actions = (
'defconfig',
+ 'listnewconfig',
'menuconfig',
'setconfig',
)
@@ -640,6 +641,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 == 'listnewconfig':
+ kconfig.listnewconfig(env, kconfig_file.abspath,
+ config_file.abspath)
elif kconfig_action == 'menuconfig':
kconfig.menuconfig(env, kconfig_file.abspath,
config_file.abspath,
variant_path)
diff --git a/site_scons/gem5_scons/kconfig.py
b/site_scons/gem5_scons/kconfig.py
index c1fe5ba..0bad546 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',
+ 'LISTNEWCONFIG_PY': 'listnewconfig.py',
'MENUCONFIG_PY': 'menuconfig.py',
'SETCONFIG_PY': 'setconfig.py',
}
@@ -69,6 +70,14 @@
'"${CONFIG_IN}"') != 0:
error("Failed to run defconfig")
+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
+ # listnewconfig output.
+ print()
+ if kconfig_env.Execute('"${LISTNEWCONFIG_PY}" "${BASE_KCONFIG}"') != 0:
+ error("Failed to run listnewconfig")
+
def menuconfig(env, base_kconfig, config_path, main_menu_text,
style='aquatic'):
kconfig_env = _prep_env(env, base_kconfig, config_path)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/56951
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: I0c426d85c0cf0d2bdbac599845669165285a82a0
Gerrit-Change-Number: 56951
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabe.bl...@gmail.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s