diff options
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 3 |
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; |