end silly multiple sources of /cpu/whatever.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1081 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ronald G. Minnich 2003-08-06 15:06:27 +00:00
parent 91232c1ca6
commit 6d76ba1492
1 changed files with 8 additions and 7 deletions

View File

@ -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