- if unknown value found exit after processing the file
Changed files:
kernel-config.py -> 1.13
# take arch line, otherwise fallback to 'all'
if hash.has_key(arch):
- dict[symbol] = hash[arch]
+ # allow empty value to skip symbol on this arch
+ if not hash[arch] == "":
+ dict[symbol] = hash[arch]
else:
if hash.has_key('all'):
dict[symbol] = hash['all']
cfg = f.read()
f.close()
+rc = 0
cfg += '\n# PLD configs\n'
for symbol in dict.items():
(key, val) = symbol
cfg += "CONFIG_%s=%s\n" % (key, val)
else:
print "Unknown value [%s] for key: %s" % (val, key)
- sys.exit(1)
+ rc = 1
+
+if not rc == 0:
+ sys.exit(rc)
f = open(outconfig, 'w')
f.write(cfg)