projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1ebaa4
)
Print the microarchitecture in --generate mode
author
Alexander Popov
<alex.popov@linux.com>
Sun, 2 Jul 2023 19:55:36 +0000
(22:55 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Sun, 2 Jul 2023 19:55:36 +0000
(22:55 +0300)
The Kconfig fragment should describe the microarchitecture to avoid mistakes.
kconfig_hardened_check/__init__.py
patch
|
blob
|
history
diff --git
a/kconfig_hardened_check/__init__.py
b/kconfig_hardened_check/__init__.py
index f28077421be91639687f3142631d0fb6a576e0de..fa32725ecc9acbfcdba873a1df5e27b6697fabea 100644
(file)
--- 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