Commit a23725c2 by Alexander Popov

Move the add_cmdline_checks() call earlier

populate_with_data() must be called after all checks have been added.
parent 98fb9d97
...@@ -864,6 +864,10 @@ def main(): ...@@ -864,6 +864,10 @@ def main():
# add relevant kconfig checks to the checklist # add relevant kconfig checks to the checklist
add_kconfig_checks(config_checklist, arch) add_kconfig_checks(config_checklist, arch)
if args.cmdline:
# add relevant cmdline checks to the checklist
add_cmdline_checks(config_checklist, arch)
# populate the checklist with the parsed kconfig data # populate the checklist with the parsed kconfig data
parsed_kconfig_options = OrderedDict() parsed_kconfig_options = OrderedDict()
parse_kconfig_file(parsed_kconfig_options, args.config) parse_kconfig_file(parsed_kconfig_options, args.config)
...@@ -871,9 +875,6 @@ def main(): ...@@ -871,9 +875,6 @@ def main():
populate_with_data(config_checklist, kernel_version, 'version') populate_with_data(config_checklist, kernel_version, 'version')
if args.cmdline: if args.cmdline:
# add relevant cmdline checks to the checklist
add_cmdline_checks(config_checklist, arch)
# populate the checklist with the parsed kconfig data # populate the checklist with the parsed kconfig data
parsed_cmdline_options = OrderedDict() parsed_cmdline_options = OrderedDict()
parse_cmdline_file(parsed_cmdline_options, args.cmdline) parse_cmdline_file(parsed_cmdline_options, args.cmdline)
......
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