summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_dgen.awk
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-05-10 19:57:40 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-13 22:21:37 +0200
commit22b5303fef91a8fe304e6bf9f6631b15f9c62f68 (patch)
tree691f0525574ea2475fb6d22364a1dd78834c0642 /scripts/lib/ptxd_lib_dgen.awk
parent9da6e07b933ea55fa66fb8c886d6965b7050a4e1 (diff)
downloadptxdist-22b5303fef91a8fe304e6bf9f6631b15f9c62f68.tar.gz
ptxdist-22b5303fef91a8fe304e6bf9f6631b15f9c62f68.tar.xz
ptxd_lib_dgen: start refactoring
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.awk18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk
index 41000721b..fd2f6427a 100644
--- a/scripts/lib/ptxd_lib_dgen.awk
+++ b/scripts/lib/ptxd_lib_dgen.awk
@@ -241,6 +241,15 @@ function import_PKG(this_PKG, this_pkg) {
target_PKG = gensub(/^HOST_|^CROSS_/, "", "", this_PKG);
this_PKG_type = gensub(/^(HOST_|CROSS_).*/, "\\1", "", this_PKG);
+ if (this_pkg ~ /^host-/) {
+ print this_PKG "_PKGDIR = $(PKGDIR)/host-$(" \
+ this_PKG ")" > DGEN_DEPS_PRE;
+ print this_PKG "_DEVPKG = host-" this_devpkg > DGEN_DEPS_PRE;
+ } else if (this_pkg ~ /^cross-/) {
+ print this_PKG "_PKGDIR = $(PKGDIR)/cross-$(" \
+ this_PKG ")" > DGEN_DEPS_PRE;
+ print this_PKG "_DEVPKG = cross-" this_devpkg > DGEN_DEPS_PRE;
+ }
# define default ${PKG}, ${PKG}_SOURCE, ${PKG}_DIR
if (target_PKG in PKG_to_pkg) {
print this_PKG " = $(" target_PKG ")" > DGEN_DEPS_PRE;
@@ -252,15 +261,6 @@ function import_PKG(this_PKG, this_pkg) {
print this_PKG "_DIR = $(addprefix $(" this_PKG_type \
"BUILDDIR)/,$(" target_PKG "))" > DGEN_DEPS_PRE;
}
- if (this_pkg ~ /^host-/) {
- print this_PKG "_PKGDIR = $(PKGDIR)/host-$(" \
- this_PKG ")" > DGEN_DEPS_PRE;
- print this_PKG "_DEVPKG = host-" this_devpkg > DGEN_DEPS_PRE;
- } else if (this_pkg ~ /^cross-/) {
- print this_PKG "_PKGDIR = $(PKGDIR)/cross-$(" \
- this_PKG ")" > DGEN_DEPS_PRE;
- print this_PKG "_DEVPKG = cross-" this_devpkg > DGEN_DEPS_PRE;
- }
}
}