summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-11-09 16:30:58 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-11-09 16:30:58 +0100
commitbaa9d1881e35852b764f34800706f8f60ca1dcba (patch)
tree19f8f65967e227dca4921d2e52d2d140f96f06e6 /scripts/lib/ptxd_lib_dgen.awk
parentf4f9175446382f83a8955a01d6a25b79eca49df2 (diff)
downloadptxdist-baa9d1881e35852b764f34800706f8f60ca1dcba.tar.gz
ptxdist-baa9d1881e35852b764f34800706f8f60ca1dcba.tar.xz
ptxd_lib_dgen: image target may need ipkg/opkg
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.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 00b985a5d..ac45d794a 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -343,6 +343,13 @@ function write_deps_pkg_active_image(this_PKG, this_pkg, prefix) {
else
print "$(" this_PKG "_IMAGE): " "$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;
}
+ #
+ # images don't depend on world, so this is needed to extract the packages
+ #
+ print "ifneq ($(strip $(" this_PKG "_PKGS)),)" > DGEN_DEPS_POST
+ print "$(" this_PKG "_IMAGE):" " \
+ $(STATEDIR)/host-$(call remove_quotes,$(PTXCONF_HOST_PACKAGE_MANAGEMENT)).install.post" > DGEN_DEPS_POST
+ print "endif" > DGEN_DEPS_POST
}
END {