From 5e7e80d926319e28460e6dce43d69111b437dc57 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 8 Nov 2022 15:26:18 +0100 Subject: analyze-kconfig: support DFATOOL_KCONF_IGNORE_NUMERIC whenevr kconf is available --- bin/analyze-kconfig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') 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() -- cgit v1.2.3