SOURCES: kernel-config.py - allow empty value to skip symbol on t...
glen
glen at pld-linux.org
Tue Feb 5 01:03:38 CET 2008
Author: glen Date: Tue Feb 5 00:03:38 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- allow empty value to skip symbol on this arch
- if unknown value found exit after processing the file
---- Files affected:
SOURCES:
kernel-config.py (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SOURCES/kernel-config.py
diff -u SOURCES/kernel-config.py:1.12 SOURCES/kernel-config.py:1.13
--- SOURCES/kernel-config.py:1.12 Tue Feb 5 00:16:48 2008
+++ SOURCES/kernel-config.py Tue Feb 5 01:03:32 2008
@@ -121,7 +121,9 @@
# 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']
@@ -135,6 +137,7 @@
cfg = f.read()
f.close()
+rc = 0
cfg += '\n# PLD configs\n'
for symbol in dict.items():
(key, val) = symbol
@@ -159,7 +162,10 @@
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)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-config.py?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list