summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r--scripts/lib/ptxd_lib_dgen.awk13
1 files changed, 12 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index e39706b9f..581fe3822 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -275,7 +275,12 @@ END {
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;
- print "$(STATEDIR)/" this_pkg ".install.post: " "$(STATEDIR)/" this_pkg ".install" > DGEN_DEPS_POST;
+ print "$(STATEDIR)/" this_pkg ".install.pack: " "$(STATEDIR)/" this_pkg ".install" > DGEN_DEPS_POST;
+ 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;
+ print "$(STATEDIR)/" this_pkg ".install.post: " "$(STATEDIR)/" this_pkg ".install.unpack" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
if (!(this_pkg ~ /^host-|^cross-/)) {
print "$(STATEDIR)/" this_pkg ".targetinstall: " "$(STATEDIR)/" this_pkg ".install.post" > DGEN_DEPS_POST;
print "$(STATEDIR)/" this_pkg ".targetinstall.post: " "$(STATEDIR)/" this_pkg ".targetinstall" > DGEN_DEPS_POST;
@@ -301,6 +306,9 @@ END {
print \
"$(STATEDIR)/" this_pkg ".prepare: " \
"$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
+ print \
+ "$(STATEDIR)/" this_pkg ".install.unpack: " \
+ "$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
#
# only target packages have targetinstall rules
@@ -331,6 +339,9 @@ END {
print \
"$(STATEDIR)/" this_pkg ".prepare: " \
"$(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
+ print \
+ "$(STATEDIR)/" this_pkg ".install.unpack: " \
+ "$(STATEDIR)/" virtual ".install" > DGEN_DEPS_POST;
}
close(PKG_HASHFILE);