diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-11-08 15:26:18 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-11-08 15:26:18 +0100 |
commit | 5e7e80d926319e28460e6dce43d69111b437dc57 (patch) | |
tree | e3d19eb01eb2590f1bc51d9bf407f585c45215e5 /bin | |
parent | 4c2234e71d85583ca6c7d83cc4856e15778db732 (diff) |
analyze-kconfig: support DFATOOL_KCONF_IGNORE_NUMERIC whenevr kconf is available
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-kconfig.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index 4dd9a9c..7a6d2fb 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -246,7 +246,7 @@ def main(): if args.export_observations_only: return else: - # show-failing-symbols, show-nop-symbols, DFATOOL_KCONF_WITH_CHOICE_NODES, DFATOOL_KCONF_IGNORE_NUMERIC, and DFATOOL_KCONF_IGNORE_STRING have no effect + # show-failing-symbols, show-nop-symbols, DFATOOL_KCONF_WITH_CHOICE_NODES have no effect # in this branch. if os.path.exists(args.kconfig_path): @@ -268,7 +268,9 @@ def main(): with open(args.model, "r") as f: observations = json.load(f) - if bool(int(os.getenv("DFATOOL_KCONF_IGNORE_STRING", 0))): + if bool(int(os.getenv("DFATOOL_KCONF_IGNORE_STRING", 0))) or bool( + int(os.getenv("DFATOOL_KCONF_IGNORE_NUMERIC", 0)) + ): attributes = KConfigAttributes(args.kconfig_path, None) for observation in observations: to_remove = list() |