Commit 3ee12f0b by Alexander Popov

Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results

parent 3c1e4cca
...@@ -644,6 +644,8 @@ def add_kconfig_checks(l, arch): ...@@ -644,6 +644,8 @@ def add_kconfig_checks(l, arch):
def add_cmdline_checks(l, arch): def add_cmdline_checks(l, arch):
# Calling the CmdlineCheck class constructor: # Calling the CmdlineCheck class constructor:
# CmdlineCheck(reason, decision, name, expected) # CmdlineCheck(reason, decision, name, expected)
# Don't add CmdlineChecks in add_kconfig_checks() to avoid wrong results
# when the tool doesn't check the cmdline.
l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'), l += [OR(CmdlineCheck('self_protection', 'kspp', 'init_on_alloc', '1'),
AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'), AND(KconfigCheck('self_protection', 'kspp', 'INIT_ON_ALLOC_DEFAULT_ON', 'y'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment