summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-05-31 08:44:07 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-05-31 08:44:07 +0200
commit4e84130130dc279f35be59e4743493f138e6becc (patch)
treedeecabaf516e5ffcfb36e797ea4fba2f11d90c45 /scripts/lib/ptxd_lib_dgen.awk
parent881fc510a986f70ed8354d7f97bd1f620fca6100 (diff)
downloadptxdist-4e84130130dc279f35be59e4743493f138e6becc.tar.gz
ptxdist-4e84130130dc279f35be59e4743493f138e6becc.tar.xz
ptxd_lib_dgen: images that use ipkgs should depend on ipkg-push if PTXCONF_IMAGE_INSTALL_FROM_IPKG_REPOSITORY is set
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 dcc55b4a8..edccf153e 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -407,6 +407,11 @@ function write_deps_pkg_active_virtual(this_PKG, this_pkg, prefix) {
}
function write_deps_pkg_active_image(this_PKG, this_pkg, prefix) {
+ print "ifdef PTXCONF_IMAGE_INSTALL_FROM_IPKG_REPOSITORY" > DGEN_DEPS_POST;
+ print "ifneq ($(" this_PKG "_PKGS),)" > DGEN_DEPS_POST;
+ print "$(" this_PKG "_IMAGE): $(STATEDIR)/ipkg-push" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
+ print "endif" > DGEN_DEPS_POST;
print "$(" this_PKG "_IMAGE): " \
"$(addprefix $(STATEDIR)/,$(addsuffix .targetinstall.post,$(" this_PKG "_PKGS)))" > DGEN_DEPS_POST;
print "$(" this_PKG "_IMAGE): " "$(" this_PKG "_FILES)" > DGEN_DEPS_POST;