summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2003-07-23 21:29:49 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2003-07-23 21:29:49 +0000
commit3bb83b8a00f61bd22a9949baacc4f6ef3efab2a3 (patch)
tree110b904cdfbca328ea919d26998e64392b9a3a75
parent6ba9ff837b9989bd227937e927409c87a3b3a6a3 (diff)
downloadcoreboot-3bb83b8a00f61bd22a9949baacc4f6ef3efab2a3.tar.xz
static device names start with static_
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1013 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/newconfig/config.g14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index 191a185254..8ff4eda564 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -586,23 +586,23 @@ class partobj:
if (self.registercode):
file.write("\t= {\n")
for f, v in self.registercode.items():
- file.write( " .%s = %s;\n" % (f, v))
+ file.write( " .%s = %s,\n" % (f, v))
file.write("};\n")
else:
file.write(";")
file.write("\n");
if (self.instance):
- file.write("struct chip dev%d = {\n" % self.instance)
+ file.write("struct chip static_dev%d = {\n" % self.instance)
else:
- file.write("struct chip root = {\n")
+ file.write("struct chip static_root = {\n")
file.write("/* %s %s */\n" % (self.type, self.dir))
#file.write(" .devfn = %d,\n" % self.devfn)
if (self.siblings):
debug.info(debug.gencode, "gencode: siblings(%d)" % self.siblings.instance)
- file.write(" .next = &dev%d,\n" % self.siblings.instance)
+ file.write(" .next = &static_dev%d,\n" % self.siblings.instance)
if (self.children):
debug.info(debug.gencode, "gencode: children(%d)" % self.children.instance)
- file.write(" .children = &dev%d,\n" % \
+ file.write(" .children = &static_dev%d,\n" % \
self.children.instance)
if (self.private):
file.write(" .private = private%d,\n" % self.instance)
@@ -1675,9 +1675,9 @@ def writecode(image):
file.write("struct chip ")
while (i <= image.numparts()):
if (i):
- file.write(", dev%d"% i)
+ file.write(", static_dev%d"% i)
else:
- file.write("root")
+ file.write("static_root")
i = i + 1
file.write(";\n")
gencode(image.getroot(), file)