summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-10-16 22:44:59 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-10-17 15:55:55 +0200
commit9b42dfe3d4f3c77f0e649cb6fe1310584a2370b9 (patch)
treecb6711aab198506a6a2baaa384f27b0d7304edc0 /scripts/lib/ptxd_lib_dgen.awk
parent812fa58ec74202c2378e8c645d0714f7574edd71 (diff)
downloadptxdist-9b42dfe3d4f3c77f0e649cb6fe1310584a2370b9.tar.gz
ptxdist-9b42dfe3d4f3c77f0e649cb6fe1310584a2370b9.tar.xz
ptxdist: add --dirty option
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.awk18
1 files changed, 11 insertions, 7 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 42600f924..09a674847 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -21,6 +21,8 @@ BEGIN {
DGEN_RULESFILES_MAKE = ENVIRON["PTX_DGEN_RULESFILES_MAKE"];
PTXDIST_TEMPDIR = ENVIRON["PTXDIST_TEMPDIR"];
PARALLEL = ENVIRON["PTXDIST_PARALLELMFLAGS_EXTERN"]
+ DIRTY = ENVIRON["PTXDIST_DIRTY"];
+ DEP = DIRTY == "true" ? "|" : ""
CHECK_LICENSES = 0
}
@@ -355,7 +357,9 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
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;
print "$(STATEDIR)/" this_pkg ".prepare: " "$(STATEDIR)/" this_pkg ".extract.post" > DGEN_DEPS_POST;
- print "$(STATEDIR)/" this_pkg ".prepare: " "$(STATEDIR)/" this_pkg ".$(" this_PKG "_CFGHASH).cfghash" > DGEN_DEPS_POST;
+ if (DIRTY != "true")
+ print "$(STATEDIR)/" this_pkg ".prepare: " \
+ "$(STATEDIR)/" this_pkg ".$(" this_PKG "_CFGHASH).cfghash" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".tags: " "$(STATEDIR)/" this_pkg ".prepare" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".compile: " "$(STATEDIR)/" this_pkg ".prepare" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".install: " "$(STATEDIR)/" this_pkg ".compile" > DGEN_DEPS_POST;
@@ -384,7 +388,7 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
print "ifneq ($(" this_PKG "),)" > DGEN_DEPS_POST;
# on autogen script
print "ifneq ($(call autogen_dep,$(" this_PKG ")),)" > DGEN_DEPS_POST;
- print "$(STATEDIR)/" this_pkg ".extract.post: $(STATEDIR)/autogen-tools" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".extract.post:" DEP " $(STATEDIR)/autogen-tools" > DGEN_DEPS_POST;
print "endif" > DGEN_DEPS_POST;
# on lndir
print "ifneq ($(findstring lndir://,$(" this_PKG "_URL)),)" > DGEN_DEPS_POST;
@@ -402,8 +406,8 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
if (PARALLEL != "-j1")
print "$(STATEDIR)/" this_pkg ".extract:| " "$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
- print "$(STATEDIR)/" this_pkg ".extract.post: " "$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
- print "$(STATEDIR)/" this_pkg ".install.unpack: " "$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".extract.post:" DEP " $(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".install.unpack:" DEP " $(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
}
this_PKG_DEPS = PKG_to_R_DEP[this_PKG];
@@ -417,7 +421,7 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
if (this_dep ~ /^host-|^cross-/)
continue;
- print "$(STATEDIR)/" this_pkg ".targetinstall: " "$(STATEDIR)/" this_dep ".targetinstall" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".targetinstall:" DEP " $(STATEDIR)/" this_dep ".targetinstall" > DGEN_DEPS_POST;
}
}
@@ -442,8 +446,8 @@ function write_deps_pkg_active_virtual(this_PKG, this_pkg, prefix) {
}
if (PARALLEL != "-j1")
print "$(STATEDIR)/" this_pkg ".extract:| " "$(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
- print "$(STATEDIR)/" this_pkg ".extract.post: " "$(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
- print "$(STATEDIR)/" this_pkg ".install.unpack: " "$(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".extract.post:" DEP " $(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".install.unpack:" DEP " $(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
}
function write_deps_pkg_active_image(this_PKG, this_pkg, prefix) {