for option, value in parsed_options.items():
if option not in known_options:
for option, value in parsed_options.items():
if option not in known_options:
with _open(fname, 'rt', encoding='utf-8') as f:
opt_is_on = re.compile(r"CONFIG_[a-zA-Z0-9_]+=.+$")
opt_is_off = re.compile(r"# CONFIG_[a-zA-Z0-9_]+ is not set$")
with _open(fname, 'rt', encoding='utf-8') as f:
opt_is_on = re.compile(r"CONFIG_[a-zA-Z0-9_]+=.+$")
opt_is_off = re.compile(r"# CONFIG_[a-zA-Z0-9_]+ is not set$")
else:
kernel_version, msg = detect_kernel_version(args.config)
if kernel_version is None:
else:
kernel_version, msg = detect_kernel_version(args.config)
if kernel_version is None:
print('[!] Hint: provide the kernel version file through --kernel-version option')
sys.exit(f'[!] ERROR: {msg}')
if mode != 'json':
print('[!] Hint: provide the kernel version file through --kernel-version option')
sys.exit(f'[!] ERROR: {msg}')
if mode != 'json':
mmap_rnd_bits_max = parsed_kconfig_options.get('CONFIG_ARCH_MMAP_RND_BITS_MAX', None)
if mmap_rnd_bits_max:
override_expected_value(config_checklist, 'CONFIG_ARCH_MMAP_RND_BITS', mmap_rnd_bits_max)
mmap_rnd_bits_max = parsed_kconfig_options.get('CONFIG_ARCH_MMAP_RND_BITS_MAX', None)
if mmap_rnd_bits_max:
override_expected_value(config_checklist, 'CONFIG_ARCH_MMAP_RND_BITS', mmap_rnd_bits_max)
# now everything is ready, perform the checks
perform_checks(config_checklist)
if mode == 'verbose':
# print the parsed options without the checks (for debugging)
# now everything is ready, perform the checks
perform_checks(config_checklist)
if mode == 'verbose':
# print the parsed options without the checks (for debugging)
- all_parsed_options.update(parsed_sysctl_options)
- print_unknown_options(config_checklist, all_parsed_options)
+ print_unknown_options(config_checklist, parsed_sysctl_options, 'sysctl')
# finally print the results
print_checklist(mode, config_checklist, True)
# finally print the results
print_checklist(mode, config_checklist, True)
# finally print the results
print_checklist(mode, config_checklist, True)
# finally print the results
print_checklist(mode, config_checklist, True)
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
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