diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-19 10:54:33 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-06-19 10:54:33 +0200 |
commit | 1903bd0109a88bf0e8c9938f888dcfcc631351be (patch) | |
tree | f99ece2c35019939eb82c20993b6ff8d338e2924 /scripts/lib/ptxd_make_xpkg_prepare.sh | |
parent | 5b42524db931e49c608dae275f0ae62a406ea102 (diff) | |
download | ptxdist-1903bd0109a88bf0e8c9938f888dcfcc631351be.tar.gz ptxdist-1903bd0109a88bf0e8c9938f888dcfcc631351be.tar.xz |
ptxd_make_xpkg: handle DEPENDS in ptxd_make_xpkg_prepare
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_xpkg_prepare.sh')
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_prepare.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_prepare.sh b/scripts/lib/ptxd_make_xpkg_prepare.sh index 7a14c8041..06edd1a03 100644 --- a/scripts/lib/ptxd_make_xpkg_prepare.sh +++ b/scripts/lib/ptxd_make_xpkg_prepare.sh @@ -13,6 +13,7 @@ # # ptxd_make_xpkg_prepare() { + local dep ptxd_make_xpkg_init || return echo "install_init: preparing for image creation of '${pkg_xpkg}'..." @@ -25,17 +26,25 @@ ptxd_make_xpkg_prepare() { mkdir -p -- "${pkg_xpkg_control_dir}" && touch "${pkg_xpkg_cmds}" || return + ptxd_make_xpkg_deps || return + + # replace space with ", " + dep="${pkg_xpkg_deps[*]}" + dep="${dep// /, }" + # - # replace ARCH and PACKAGE in control file + # replace ARCH PACKAGE, VERSION and DEPENDS in control file # echo -e "\ install_init: @ARCH@ -> ${PTXDIST_IPKG_ARCH_STRING} install_init: @PACKAGE@ -> ${pkg_xpkg} -install_init: @VERSION@ -> ${pkg_xpkg_version}" +install_init: @VERSION@ -> ${pkg_xpkg_version} +install_init: @DEPENDS@ -> ${dep}" ARCH="${PTXDIST_IPKG_ARCH_STRING}" \ PACKAGE="${pkg_xpkg}" \ VERSION="${pkg_xpkg_version}" \ + DEPENDS="${dep}" \ ptxd_replace_magic "${PTXDIST_TOPDIR}/config/xpkg/ipkg.control" > \ "${pkg_xpkg_control}" || return |