summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-06-28 08:59:49 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-06-28 08:59:49 +0200
commit31a4e67625730f765943e5b60c401d8027a50a96 (patch)
treec6dd6ba2b128de650075b218281711a6d0e12cda /bin
parent54886307daed58eee704c88f972cb3b578366b95 (diff)
analyze-kconfig: move paramValueToIndex to model root
This is what kconfig-webconf expects
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-kconfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index ec08a3b..8401e68 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -575,6 +575,10 @@ def main():
json_model[attribute] = data.copy()
if nfpkeys:
json_model[attribute].update(nfpkeys[name][attribute])
+ if "paramValueToIndex" in json_model[attribute]["modelFunction"]:
+ json_model[attribute]["paramValueToIndex"] = json_model[attribute][
+ "modelFunction"
+ ].pop("paramValueToIndex")
out_model = {
"model": json_model,
"modelType": "dfatool-kconfig",