summaryrefslogtreecommitdiff
path: root/util/newconfig
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2003-07-24 15:14:39 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2003-07-24 15:14:39 +0000
commitb794667b75e96370a8d409a6dc9781043170e4f9 (patch)
treeea57fcbbd5359bcda441cd51a3ac9ce65be22d65 /util/newconfig
parenteb98b1c3190ee3504c865e10b64fc38d12d4d050 (diff)
downloadcoreboot-b794667b75e96370a8d409a6dc9781043170e4f9.tar.xz
added uses checking at top level
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1029 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/newconfig')
-rw-r--r--util/newconfig/config.g7
1 files changed, 3 insertions, 4 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index 8ff4eda564..a28506024b 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -705,7 +705,7 @@ def setoption(name, value):
curpart = partstack.tos()
if (curpart and curpart.type != 'mainboard'):
fatal("Options may only be set in top-level and mainboard configuration files")
- o = getdict(global_options, name)
+ o = getdict(global_uses_options, name)
if (o == 0):
fatal("Attempt to set nonexistent option %s" % name)
v = option_value(value)
@@ -1728,8 +1728,8 @@ if __name__=='__main__':
fatal("Could not parse file")
loc.pop()
- for r in romimages.keys():
- verifyparse(getdict(romimages, r))
+ for image_name, image in romimages.items():
+ verifyparse(image)
# no longer need to check if an options has been used
alloptions = 1
@@ -1744,7 +1744,6 @@ if __name__=='__main__':
print "Creating directory %s" % img_dir
os.makedirs(img_dir)
- # crt0 includes
if (debug.level(debug.dump)):
for i in image.getinitincludes():
debug.info(debug.dump, "crt0include file %s" % i)