diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-04-20 11:28:13 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-04-22 12:11:02 +0200 |
commit | 1ee21af25d61ca882d92abf5aa433a93c3f419a9 (patch) | |
tree | 83a6ae38ead3c377c057625666ec32cb723b4fae /scripts/lib/ptxd_lib_dgen.awk | |
parent | 36cffa779405b635a80f591f90489848aeb6b2d8 (diff) | |
download | ptxdist-1ee21af25d61ca882d92abf5aa433a93c3f419a9.tar.gz ptxdist-1ee21af25d61ca882d92abf5aa433a93c3f419a9.tar.xz |
[ptxd_lib_dgen] define <PKG>_DEVPKG for all 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 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_lib_dgen.awk b/scripts/lib/ptxd_lib_dgen.awk index 2c4c4f641..e39706b9f 100644 --- a/scripts/lib/ptxd_lib_dgen.awk +++ b/scripts/lib/ptxd_lib_dgen.awk @@ -226,14 +226,20 @@ function import_PKG(this_PKG, this_pkg) { " := $(STATEDIR)/" this_pkg "." stage ".post" > DGEN_DEPS_PRE; # + # archive name for devel packages + # + this_devpkg = "$(" this_PKG ")-$(" this_PKG "_CFGHASH)-dev.tar.gz" + + # # things depending on target or host-, cross- package # - if (this_pkg !~ /^host-|^cross-/) + if (this_pkg !~ /^host-|^cross-/) { # target packages # define ${PKG}_PKGDIR print this_PKG "_PKGDIR = $(PKGDIR)/$(" this_PKG ")" > DGEN_DEPS_PRE; - else { + print this_PKG "_DEVPKG = " this_devpkg > DGEN_DEPS_PRE; + } else { # host, cross packages target_PKG = gensub(/^HOST_|^CROSS_/, "", "", this_PKG); @@ -244,6 +250,11 @@ function import_PKG(this_PKG, this_pkg) { print this_PKG "_SOURCE = $(" target_PKG "_SOURCE)" > DGEN_DEPS_PRE; print this_PKG "_DIR = $(" this_PKG_type \ "BUILDDIR)/$(" target_PKG ")" > DGEN_DEPS_PRE; + if (this_pkg ~ /^host-/) { + print this_PKG "_DEVPKG = host-" this_devpkg > DGEN_DEPS_PRE; + } else if (this_pkg ~ /^cross-/) { + print this_PKG "_DEVPKG = cross-" this_devpkg > DGEN_DEPS_PRE; + } } } |