diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-06-19 18:01:42 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-08-17 10:56:21 +0200 |
commit | 334fbdf459bbde6b5063c8babd98c9e9d8c7abf1 (patch) | |
tree | 6c8415a3c049257aa1a2aed2b4b71be80a64c8d0 /scripts/lib/ptxd_lib_dgen.awk | |
parent | 039ffdcfe7154f15b58a3b1422a90a1ce2e5c9a9 (diff) | |
download | ptxdist-334fbdf459bbde6b5063c8babd98c9e9d8c7abf1.tar.gz ptxdist-334fbdf459bbde6b5063c8babd98c9e9d8c7abf1.tar.xz |
[dgen] add support for new "BASE" dependencies
Until this patch all target packages depent automatically on the
"virtual-cross-tools", which provide fakeroot, pkgconfig and so on.
In order to install certain "target" pacakge before _all_ other target
packages the "BASE" package is introduced.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_dgen.awk')
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 234a5bec5..37c179839 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -131,6 +131,18 @@ $1 ~ /^PTX_MAP_DEP/ { this_DEP = this_DEP_array[i]; if (this_DEP in PKG_to_pkg) { + if (this_DEP ~ /^BASE$/) { + base_PKG_to_pkg[this_PKG] = PKG_to_pkg[this_PKG]; + + if (!("BASE" in PKG_to_DEP)) { + PKG_to_DEP["BASE"] = this_PKG; + } else{ + PKG_to_DEP["BASE"] = PKG_to_DEP["BASE"] ":" this_PKG; + } + + continue; + } + this_dep = PKG_to_pkg[this_DEP]; if (found == 0) { @@ -261,8 +273,12 @@ END { if (this_pkg ~ /^host-|^cross-/) virtual = "virtual-host-tools"; - else - virtual = "virtual-cross-tools"; + else { + if (this_PKG in base_PKG_to_pkg || this_pkg ~ /^base$/) + virtual = "virtual-cross-tools"; + else + virtual = "base"; + } print \ "$(STATEDIR)/" this_pkg ".prepare: " \ |