- Put the rule for the Makefile at the bottom of the makefile!
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1753 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
c149210462
commit
1c1b858f0f
|
@ -1902,7 +1902,9 @@ parser Config:
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
def writemakefileheader(file, fname):
|
def writemakefileheader(file, fname):
|
||||||
file.write("# File: %s is autogenerated\n" % fname)
|
file.write("# File: %s is autogenerated\n" % fname)
|
||||||
file.write("%s: %s %s\n"
|
|
||||||
|
def writemakefilefooter(file, fname):
|
||||||
|
file.write("\n\n%s: %s %s\n"
|
||||||
% (os.path.basename(fname), os.path.abspath(sys.argv[0]), top_config_file))
|
% (os.path.basename(fname), os.path.abspath(sys.argv[0]), top_config_file))
|
||||||
file.write("\t(cd %s ; %s %s %s)\n\n"
|
file.write("\t(cd %s ; %s %s %s)\n\n"
|
||||||
% (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2]))
|
% (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2]))
|
||||||
|
@ -1919,6 +1921,7 @@ def writemakefilesettings(path):
|
||||||
writemakefileheader(file, filename)
|
writemakefileheader(file, filename)
|
||||||
file.write("TOP:=%s\n" % (treetop))
|
file.write("TOP:=%s\n" % (treetop))
|
||||||
file.write("TARGET_DIR:=%s\n" % target_dir)
|
file.write("TARGET_DIR:=%s\n" % target_dir)
|
||||||
|
writemakefilefooter(file, filename)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
def writeimagesettings(image):
|
def writeimagesettings(image):
|
||||||
|
@ -1951,6 +1954,7 @@ def writeimagesettings(image):
|
||||||
for o in exported:
|
for o in exported:
|
||||||
file.write("export VARIABLES += %s\n" % o.name)
|
file.write("export VARIABLES += %s\n" % o.name)
|
||||||
file.write("\n")
|
file.write("\n")
|
||||||
|
writemakefilefooter(file,filename)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
# write the romimage makefile
|
# write the romimage makefile
|
||||||
|
@ -2107,6 +2111,7 @@ def writeimagemakefile(image):
|
||||||
file.write("\n")
|
file.write("\n")
|
||||||
for i in m.actions:
|
for i in m.actions:
|
||||||
file.write("\t%s\n" % i)
|
file.write("\t%s\n" % i)
|
||||||
|
writemakefilefooter(file, makefilepath)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -2151,6 +2156,7 @@ def writemakefile(path):
|
||||||
file.write(" %s-clean" % i)
|
file.write(" %s-clean" % i)
|
||||||
file.write("\n\n")
|
file.write("\n\n")
|
||||||
|
|
||||||
|
writemakefilefooter(file, makefilepath)
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
def writeinitincludes(image):
|
def writeinitincludes(image):
|
||||||
|
|
Loading…
Reference in New Issue