summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/newconfig/config.g8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index 09663aaa44..584c1b32c5 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -1902,7 +1902,9 @@ parser Config:
#=============================================================================
def writemakefileheader(file, 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))
file.write("\t(cd %s ; %s %s %s)\n\n"
% (os.getcwd(), sys.argv[0], sys.argv[1], sys.argv[2]))
@@ -1919,6 +1921,7 @@ def writemakefilesettings(path):
writemakefileheader(file, filename)
file.write("TOP:=%s\n" % (treetop))
file.write("TARGET_DIR:=%s\n" % target_dir)
+ writemakefilefooter(file, filename)
file.close()
def writeimagesettings(image):
@@ -1951,6 +1954,7 @@ def writeimagesettings(image):
for o in exported:
file.write("export VARIABLES += %s\n" % o.name)
file.write("\n")
+ writemakefilefooter(file,filename)
file.close()
# write the romimage makefile
@@ -2107,6 +2111,7 @@ def writeimagemakefile(image):
file.write("\n")
for i in m.actions:
file.write("\t%s\n" % i)
+ writemakefilefooter(file, makefilepath)
file.close()
#
@@ -2151,6 +2156,7 @@ def writemakefile(path):
file.write(" %s-clean" % i)
file.write("\n\n")
+ writemakefilefooter(file, makefilepath)
file.close()
def writeinitincludes(image):