diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2003-08-06 15:06:27 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2003-08-06 15:06:27 +0000 |
commit | 6d76ba1492abf3c33708d46f925f13e263083453 (patch) | |
tree | 0ef165d7364eb029610a2a08306cddd1e0c0cdc3 /util/newconfig | |
parent | 91232c1ca610e149c6f95e9647849ab821d7d8b8 (diff) |
end silly multiple sources of /cpu/whatever.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1081 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/newconfig')
-rw-r--r-- | util/newconfig/config.g | 15 |
1 files changed, 8 insertions, 7 deletions
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 |