This is a small fix for the last checkin (does not fix those two boards) that

caused same filenames to still cause objects being dropped from the build list
- which was the whole purpose of the patch.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3962 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-02-28 17:09:29 +00:00 committed by Stefan Reinauer
parent 21c8b5ab5c
commit 9987ad806f
1 changed files with 5 additions and 4 deletions

View File

@ -330,6 +330,7 @@ class romimage:
if (object_name[0] == '.'):
source = base + suffix
object = base + '.o'
rel_base = base
else:
rel_base = re.sub(treetop, "", os.path.join(dirstack.tos(), base))
source = "$(TOP)/" + rel_base + suffix
@ -337,11 +338,11 @@ class romimage:
rel_base = re.sub("^/", "", rel_base)
object = rel_base + '.o'
debug.info(debug.object, "add object %s source %s" % (object_name, source))
l = getdict(dict, base)
debug.info(debug.object, "add object %s source %s" % (object, source))
l = getdict(dict, rel_base)
if (l):
warning("object/driver %s previously defined" % base)
setdict(dict, base, [object, source, type, base])
warning("object/driver %s previously defined" % rel_base)
setdict(dict, rel_base, [object, source, type, rel_base])
def addinitobjectrule(self, name):
self.addobjectdriver(self.initobjectrules, name)