summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-10-19 09:26:56 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-10-19 09:26:56 +0200
commit7d14ef14dbb31657e7754138fb099551ad016aab (patch)
treed762a572cd3312138c05c100017e20a5cdd4db0d /bin
parenta28ec3514edc292ecb81b63447f9aac9e1dd3599 (diff)
--export-dref: add kconfig feature types if known
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-kconfig.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py
index 4775181..4dd9a9c 100755
--- a/bin/analyze-kconfig.py
+++ b/bin/analyze-kconfig.py
@@ -249,6 +249,11 @@ def main():
# show-failing-symbols, show-nop-symbols, DFATOOL_KCONF_WITH_CHOICE_NODES, DFATOOL_KCONF_IGNORE_NUMERIC, and DFATOOL_KCONF_IGNORE_STRING have no effect
# in this branch.
+ if os.path.exists(args.kconfig_path):
+ attributes = KConfigAttributes(args.kconfig_path, None)
+ if args.export_dref:
+ dref.update(attributes.to_dref())
+
if args.model.endswith("xz"):
import lzma