diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-08-01 20:46:06 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-08-02 06:55:38 +0200 |
commit | cff5469dc9027893c8c92396d5604461539a23b5 (patch) | |
tree | cbebb22265e0dca82b3ccbdd296317720aa74c9d | |
parent | c9b2e34c8ed232ac2be6106f4291c614239979dd (diff) | |
download | ptxdist-cff5469dc9027893c8c92396d5604461539a23b5.tar.gz ptxdist-cff5469dc9027893c8c92396d5604461539a23b5.tar.xz |
[dgen] don't define convenience variables for host/cross package without corresponding host packageptxdist-2010.08.0
We define HOST_<PKG>_DIR etc. based on the corresponding host package.
If it does not exist those variables a bogus. So don't define them.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_lib_dgen.awk | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index b6188124a..b0c7ada20 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -268,10 +268,13 @@ function import_PKG(this_PKG, this_pkg) { this_PKG_type = gensub(/^(HOST_|CROSS_).*/, "\\1", "", this_PKG); # define default ${PKG}, ${PKG}_SOURCE, ${PKG}_DIR - print this_PKG " = $(" target_PKG ")" > DGEN_DEPS_PRE; - print this_PKG "_SOURCE = $(" target_PKG "_SOURCE)" > DGEN_DEPS_PRE; - print this_PKG "_DIR = $(" this_PKG_type \ - "BUILDDIR)/$(" target_PKG ")" > DGEN_DEPS_PRE; + if (target_PKG in PKG_to_pkg) { + print this_PKG " = $(" target_PKG ")" > DGEN_DEPS_PRE; + print this_PKG "_SOURCE = $(" \ + target_PKG "_SOURCE)" > DGEN_DEPS_PRE; + 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; |