Commit ba678bf3 by Alexander Popov

Check that a kconfig option value is sane

parent 05113077
...@@ -784,6 +784,8 @@ def parse_kconfig_file(parsed_options, fname): ...@@ -784,6 +784,8 @@ def parse_kconfig_file(parsed_options, fname):
if opt_is_on.match(line): if opt_is_on.match(line):
option, value = line.split('=', 1) option, value = line.split('=', 1)
if value == 'is not set':
sys.exit('[!] ERROR: bad enabled kconfig option "{}"'.format(line))
elif opt_is_off.match(line): elif opt_is_off.match(line):
option, value = line[2:].split(' ', 1) option, value = line[2:].split(' ', 1)
if value != 'is not set': if value != 'is not set':
......
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