From 6d76ba1492abf3c33708d46f925f13e263083453 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Wed, 6 Aug 2003 15:06:27 +0000 Subject: end silly multiple sources of /cpu/whatever. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1081 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/newconfig/config.g | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'util/newconfig/config.g') diff --git a/util/newconfig/config.g b/util/newconfig/config.g index bb5b41a3a3..6f5d74506d 100644 --- a/util/newconfig/config.g +++ b/util/newconfig/config.g @@ -1076,12 +1076,6 @@ def cpudir(path): def part(type, path, file, name): global curimage, dirstack, partstack - # special case for 'cpu' parts. - # we could add a new function too, but this is rather trivial. - # if the part is a cpu, and we haven't seen it before, - # arrange to source the directory /cpu/'type' - if (type == 'cpu'): - cpudir(path) partdir = os.path.join(type, path) srcdir = os.path.join(treetop, 'src') fulldir = os.path.join(srcdir, partdir) @@ -1091,7 +1085,14 @@ def part(type, path, file, name): print "Configuring PART %s, path %s" % (type, path) partstack.push(newpart) dirstack.push(fulldir) - doconfigfile(srcdir, partdir, file) + # special case for 'cpu' parts. + # we could add a new function too, but this is rather trivial. + # if the part is a cpu, and we haven't seen it before, + # arrange to source the directory /cpu/'type' + if (type == 'cpu'): + cpudir(path) + else: + doconfigfile(srcdir, partdir, file) def partpop(): global dirstack, partstack -- cgit v1.2.3