summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-05-17 15:02:04 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-05-26 07:21:42 +0200
commit2e695987211c2c2e6e19e3f2e0e42b001b1ceff3 (patch)
tree7f367a101e7cb1d315c1a41f9984bd8c217a461f /scripts/lib/ptxd_lib_dgen.awk
parentb0baf79ff718ecaf67e0415d3af72d715bbdd367 (diff)
downloadptxdist-2e695987211c2c2e6e19e3f2e0e42b001b1ceff3.tar.gz
ptxdist-2e695987211c2c2e6e19e3f2e0e42b001b1ceff3.tar.xz
ptxd_lib_dgen: add order-only dependency to extract
This is not stictly necessary but useful to avoid extracting all packages first when building with '-je*'. Only do it for parallel building, so that 'ptxdist extract <pkg>' works like before. 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.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index c25570654..531dba11d 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -20,6 +20,7 @@ BEGIN {
DGEN_DEPS_POST = ENVIRON["PTX_DGEN_DEPS_POST"];
DGEN_RULESFILES_MAKE = ENVIRON["PTX_DGEN_RULESFILES_MAKE"];
PTXDIST_TEMPDIR = ENVIRON["PTXDIST_TEMPDIR"];
+ PARALLEL = ENVIRON["PTXDIST_PARALLELMFLAGS_EXTERN"]
}
#
@@ -299,6 +300,8 @@ function write_deps_pkg_active(this_PKG, this_pkg, prefix) {
for (i = 1; i <= n; i++) {
this_dep = PKG_to_pkg[this_DEP_array[i]]
+ 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;
@@ -335,6 +338,8 @@ function write_deps_pkg_active_virtual(this_PKG, this_pkg, prefix) {
else
virtual = "base";
}
+ 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;
}