summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2019-05-20 20:55:10 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-05-20 21:02:19 +0200
commit5d5881ffd1b01482ccdd98a99b8cd08f6b673383 (patch)
tree8b448527f6b86f0399a95fa9e2768780aa4be97f /scripts/lib/ptxd_lib_dgen.awk
parent705faad6160825b676137cf4a04ffe17124c301b (diff)
downloadptxdist-5d5881ffd1b01482ccdd98a99b8cd08f6b673383.tar.gz
ptxdist-5d5881ffd1b01482ccdd98a99b8cd08f6b673383.tar.xz
ptxd_lib_dgen: handle config changes when using devpkgs
Then devpkgs exist for two different configurations, then switching between them then the .install.unpack stage will not be triggered again, because the tarball is older. Fix this by adding a extra dependency on .cfghash to handle this the same way as the normal build. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r--scripts/lib/ptxd_lib_dgen.awk3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 4688461a6..f21811be5 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -382,6 +382,9 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
print "ifeq ($(strip $(wildcard $(PTXDIST_DEVPKG_PLATFORMDIR)/$(" this_PKG "_DEVPKG))),)" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".install.post: " "$(STATEDIR)/" this_pkg ".install.pack" > DGEN_DEPS_POST;
print "else" > DGEN_DEPS_POST;
+ if (DIRTY != "true")
+ print "$(STATEDIR)/" this_pkg ".install.unpack: " \
+ "$(STATEDIR)/" this_pkg ".$(" this_PKG "_CFGHASH).cfghash" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".install.post: " "$(STATEDIR)/" this_pkg ".install.unpack" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
if (prefix == "") {