diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-08 17:47:44 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-10 15:35:06 +0100 |
commit | eb18824f0bba81f3b3c961c5886ec9e53eafc0f0 (patch) | |
tree | 1414d367e50d2da932c1f5e11b024cf380d092f1 /scripts/lib/ptxd_lib_dgen.awk | |
parent | 7510bd9aafb050f3aefb945a8d133c92264e1d47 (diff) | |
download | ptxdist-eb18824f0bba81f3b3c961c5886ec9e53eafc0f0.tar.gz ptxdist-eb18824f0bba81f3b3c961c5886ec9e53eafc0f0.tar.xz |
[dgen] add default package name & source variables for host-* and cross-* packages
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.awk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 5be1ddf16..218a736d9 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -2,6 +2,7 @@ # # Copyright (C) 2006, 2007, 2008 by the PTXdist project # 2009 by Marc Kleine-Budde <mkl@pengutronix.de> +# 2010 by Michael Olbrich <m.olbrich@pengutronix.de> # # See CREDITS for details about who has contributed to this project. # @@ -212,12 +213,23 @@ function import_PKG(this_PKG, this_pkg) { " := $(STATEDIR)/" this_pkg "." stage ".post" > DGEN_DEPS_PRE; # - # define ${PKG}_PKGDIR + # things depending on target or host-, cross- package # if (this_pkg !~ /^host-|^cross-/) + # target packages + + # define ${PKG}_PKGDIR print this_PKG "_PKGDIR = $(PKGDIR)/$(" this_PKG ")" > DGEN_DEPS_PRE; -} + else { + # host, cross packages + + target_PKG = gensub(/^HOST_|^CROSS_/, "", "", this_PKG); + # define default ${PKG} & ${PKG}_SOURCE + print this_PKG " = $(" target_PKG ")" > DGEN_DEPS_PRE; + print this_PKG "_SOURCE = $(" target_PKG "_SOURCE)" > DGEN_DEPS_PRE; + } +} END { # for all pkgs |