From 940be276dfedf56d92ca08beac320a37426922c7 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 2 Jul 2023 22:55:36 +0300 Subject: [PATCH] Print the microarchitecture in --generate mode The Kconfig fragment should describe the microarchitecture to avoid mistakes. --- kconfig_hardened_check/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index f280774..fa32725 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -320,6 +320,7 @@ def main(): sys.exit(f'[!] ERROR: wrong mode "{mode}" for --generate') arch = args.generate add_kconfig_checks(config_checklist, arch) + print(f'CONFIG_{arch}=y') # the Kconfig fragment should describe the microarchitecture for opt in config_checklist: if opt.name == 'CONFIG_ARCH_MMAP_RND_BITS': continue # don't add CONFIG_ARCH_MMAP_RND_BITS because its value needs refinement -- 2.31.1