summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2020-07-24 11:03:35 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-08-03 21:57:03 +0200
commit930abc8a76b2ad29e4d974988b1999d42cade24b (patch)
tree01a18f8c1762a88d9f59f157536519ea0a247786
parent96a881d161a51b4260ae97e1ff6ae6640db1adbd (diff)
downloadptxdist-master.tar.gz
ptxd_lib_dgen: make pakage source filename and md5 part of the source hashHEADmaster
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--scripts/lib/ptxd_lib_dgen.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 8c09c53..fca6246 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -410,6 +410,13 @@ function write_deps_pkg_active_cfghash(this_PKG, this_pkg) {
print "PTXDIST_HASHLIST_DATA += PATCHES: " this_PKG " $(" this_PKG "_PATCH_DIR)\\n" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
+ print "ifneq ($(" this_PKG "_SOURCE),)" > DGEN_DEPS_POST;
+ print "ifdef PTXDIST_SETUP_ONCE" > DGEN_DEPS_POST;
+ print "_tmp := $(" this_PKG "_MD5) $(notdir $(" this_PKG "_SOURCE))" > DGEN_DEPS_POST;
+ print "$(file >>" PTXDIST_TEMPDIR "/pkghash-" this_PKG ",$(_tmp))" > DGEN_DEPS_POST;
+ print "$(file >>" PTXDIST_TEMPDIR "/pkghash-" this_PKG "_EXTRACT,$(_tmp))" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
print "ifdef PTXDIST_SETUP_ONCE" > DGEN_DEPS_POST;
print this_PKG "_CONFIG := $(" this_PKG "_CONFIG)" > DGEN_DEPS_POST;