SOURCES: kernel-config-update.py - handle inline symbols

glen glen at pld-linux.org
Tue Feb 5 20:58:23 CET 2008


Author: glen                         Date: Tue Feb  5 19:58:23 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- handle inline symbols

---- Files affected:
SOURCES:
   kernel-config-update.py (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SOURCES/kernel-config-update.py
diff -u SOURCES/kernel-config-update.py:1.14 SOURCES/kernel-config-update.py:1.15
--- SOURCES/kernel-config-update.py:1.14	Tue Feb  5 17:47:26 2008
+++ SOURCES/kernel-config-update.py	Tue Feb  5 20:58:17 2008
@@ -92,12 +92,23 @@
 
     c = l.strip().split()
     symbol = c[0]
+
+    # inline symbol: for current arch, may override config one
+    if symbol.find('=') > 0:
+        (symbol, value) = symbol.split('=')
+
+        if not dict.has_key(symbol):
+            dict[symbol] = odict()
+
+        dict[symbol][arch] = value
+        continue
+
     if dict.has_key(symbol):
         sys.stderr.write("Duplicate symbol: %s\n" % symbol)
         rc = 1
         continue
 
-    conf = dict[symbol] = odict()
+    dict[symbol] = odict()
     for item in c[1:]:
         (key, value) = item.split('=')
         if not allarch.has_key(key):
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-config-update.py?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list