- Remove superfluous / from path
- use make -C instead of workaround Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Peter Stuge <peter@stuge.se> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4448 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
bb01f600c8
commit
163ff1d5ad
|
@ -357,7 +357,7 @@ class romimage:
|
||||||
rel_base = base
|
rel_base = base
|
||||||
else:
|
else:
|
||||||
rel_base = re.sub(treetop, "", os.path.join(dirstack.tos(), base))
|
rel_base = re.sub(treetop, "", os.path.join(dirstack.tos(), base))
|
||||||
source = "$(TOP)/" + rel_base + suffix
|
source = "$(TOP)" + rel_base + suffix
|
||||||
if (rel_base[0] == '/'):
|
if (rel_base[0] == '/'):
|
||||||
rel_base = re.sub("^/", "", rel_base)
|
rel_base = re.sub("^/", "", rel_base)
|
||||||
object = rel_base + '.o'
|
object = rel_base + '.o'
|
||||||
|
@ -2263,9 +2263,7 @@ def writemakefile(path):
|
||||||
file.write("include Makefile.settings\n\n")
|
file.write("include Makefile.settings\n\n")
|
||||||
for i, o in romimages.items():
|
for i, o in romimages.items():
|
||||||
file.write("%s/coreboot.rom:\n" % o.getname())
|
file.write("%s/coreboot.rom:\n" % o.getname())
|
||||||
file.write("\tif (cd %s; \\\n" % o.getname())
|
file.write("\t$(MAKE) -C %s coreboot.rom\n" % o.getname())
|
||||||
file.write("\t\t$(MAKE) coreboot.rom)\\\n")
|
|
||||||
file.write("\tthen true; else exit 1; fi;\n\n")
|
|
||||||
file.write("clean: ")
|
file.write("clean: ")
|
||||||
for i in romimages.keys():
|
for i in romimages.keys():
|
||||||
file.write(" %s-clean" % i)
|
file.write(" %s-clean" % i)
|
||||||
|
|
Loading…
Reference in New Issue