summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-09-08 18:34:33 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-08 18:38:34 +0200
commit55faac370ced74fa182efbbf1574d1f059ef953c (patch)
tree755cef26f53df6e8f3d9e2e98082ec5fc8233f6c /scripts
parent9493b22b1759fa88e30203f280c51226c9f6af1a (diff)
downloadptxdist-55faac370ced74fa182efbbf1574d1f059ef953c.tar.gz
ptxdist-55faac370ced74fa182efbbf1574d1f059ef953c.tar.xz
ptxd_lib_dgen: handle removed patches better
If all patches for a package are removed then the package is currently not reextracted because the .srchash dependency is just dropped and not changed. Fix this by defining a fake hash. This way the dependency changes and the package is extracted again. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_lib_dgen.awk5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 45ae43b73..8908d77bd 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -398,10 +398,11 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
print "$(foreach src,$(" this_PKG "_SOURCES)," \
"$(eval $(STATEDIR)/" this_pkg ".get:" "$(STATEDIR)/" this_pkg ".$(notdir $(src)).stamp))" > DGEN_DEPS_POST;
if (DIRTY != "true") {
- print "ifneq ($(" this_PKG "_EXTRACT_CFGHASH),)" > DGEN_DEPS_POST;
+ print "ifeq ($(" this_PKG "_EXTRACT_CFGHASH),)" > DGEN_DEPS_POST;
+ print this_PKG "_EXTRACT_CFGHASH := 00000000000000000000000000000000" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".extract: " \
"$(STATEDIR)/" this_pkg ".$(" this_PKG "_EXTRACT_CFGHASH).srchash" > DGEN_DEPS_POST;
- print "endif" > DGEN_DEPS_POST;
}
print "$(STATEDIR)/" this_pkg ".extract: " "$(STATEDIR)/" this_pkg ".get" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".extract.post: " "$(STATEDIR)/" this_pkg ".extract" > DGEN_DEPS_POST;