summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-08-11 17:01:48 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-08-11 17:04:32 +0200
commit9c5c15d4e2db104cb09cacd7354a8a264d5c3426 (patch)
tree974dc90c6c511bab4fad2db7ef7c13fe10247912 /scripts/lib/ptxd_lib_dgen.awk
parent608f894e574576860764e13304511435f8adf206 (diff)
downloadptxdist-9c5c15d4e2db104cb09cacd7354a8a264d5c3426.tar.gz
ptxdist-9c5c15d4e2db104cb09cacd7354a8a264d5c3426.tar.xz
ptxd_lib_dgen: fix dependencies for image packages
the prefix of the dependency must be checked to determine if the image depends on install or targetinstall. 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.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 807da68a3..5c385b300 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -348,7 +348,8 @@ function write_deps_pkg_active_image(this_PKG, this_pkg, prefix) {
n = split(this_PKG_DEPS, this_DEP_array, " ");
for (i = 1; i <= n; i++) {
this_dep = PKG_to_pkg[this_DEP_array[i]]
- if (this_pkg_prefix == "")
+ this_dep_prefix = gensub(/^(host-|cross-|image-|).*/, "\\1", "", this_dep)
+ if (this_dep_prefix == "")
print "$(" this_PKG "_IMAGE): " "$(STATEDIR)/" this_dep ".targetinstall.post" > DGEN_DEPS_POST;
else
print "$(" this_PKG "_IMAGE): " "$(STATEDIR)/" this_dep ".install.post" > DGEN_DEPS_POST;