From b794667b75e96370a8d409a6dc9781043170e4f9 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Thu, 24 Jul 2003 15:14:39 +0000 Subject: added uses checking at top level git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1029 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/newconfig/config.g | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'util') 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) -- cgit v1.2.3