aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@openbios.org>2003-09-26 11:40:05 +0000
committerStefan Reinauer <stepan@openbios.org>2003-09-26 11:40:05 +0000
commit0502b7a64c748ffba5e509b8be400debf0396a0e (patch)
tree8a17f92cda031e1fe5c2882126cfe22deb26f787 /util
parentdfe7d53a09a453374a997105dbeb916ff7723bb8 (diff)
fix buildrom statement if there's only one romimage specified.
roms always needs to be an array. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1143 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-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 6ff9c8a97a..23bdea9a79 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -1530,9 +1530,9 @@ parser Config:
(romstmt<<1>>)*
END {{ endromimage() }}
- rule roms: STR {{ s = '(' + STR }}
+ rule roms: STR {{ s = '[' + STR }}
( STR {{ s = s + "," + STR }}
- )* {{ return eval(s + ')') }}
+ )* {{ return eval(s + ']') }}
rule buildrom: BUILDROM DIRPATH expr roms {{ addbuildrom(DIRPATH, expr, roms) }}
@@ -1812,12 +1812,12 @@ def writemakefile(path):
file.write("\t(cd %s; make clean)\n" % o.getname())
file.write("\nbuildroms:\n")
- for i in range(len(buildroms)):
+ for i in buildroms:
file.write("\tcat ");
- for j in range(len(buildroms[i])):
- file.write("%s/linuxbios.rom " % buildroms[i][j] )
- file.write("> %s\n" % buildroms[i].name);
- file.write("\n\n")
+ for j in i.roms:
+ file.write("%s/linuxbios.rom " % j )
+ file.write("> %s\n" % i.name);
+ file.write("\n")
file.close()