diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-07-24 11:03:35 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-03 21:57:03 +0200 |
commit | 930abc8a76b2ad29e4d974988b1999d42cade24b (patch) | |
tree | 01a18f8c1762a88d9f59f157536519ea0a247786 | |
parent | 96a881d161a51b4260ae97e1ff6ae6640db1adbd (diff) | |
download | ptxdist-930abc8a76b2ad29e4d974988b1999d42cade24b.tar.gz ptxdist-930abc8a76b2ad29e4d974988b1999d42cade24b.tar.xz |
ptxd_lib_dgen: make pakage source filename and md5 part of the source hash
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 8c09c5311..fca62460f 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; |