aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/klibc
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2012-11-01 18:50:11 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-11-16 11:25:36 +0100
commitde40d9357d793cba0fd17cd46106ffd6b7fdc85f (patch)
tree861005bf44aff9ff50d4631732f1e8b11c79ff7a /meta-initramfs/recipes-devtools/klibc
parent8e489120f9c4ae91e121ae9d33fecc1aacdf3257 (diff)
downloadmeta-openembedded-contrib-de40d9357d793cba0fd17cd46106ffd6b7fdc85f.tar.gz
meta-openembedded-contrib-de40d9357d793cba0fd17cd46106ffd6b7fdc85f.tar.bz2
meta-openembedded-contrib-de40d9357d793cba0fd17cd46106ffd6b7fdc85f.zip
klibc: refactor runtime deps for shared utils
rebased after d.expand / bb.data.expand change Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc')
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-utils.inc43
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc2
2 files changed, 5 insertions, 40 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc b/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc
index 16cba8909a..cdcaafa55b 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc
@@ -1,8 +1,7 @@
KLIBC_UTILS_VARIANT ?= "shared"
KLIBC_UTILS_PKGNAME ?= "klibc-utils"
-# modprobe and losetup go to ${base_sbindir}
-# even though debian packages all in /usr/lib/klibc/bin
+# losetup goes in ${base_sbindir}
do_install_append() {
@@ -56,49 +55,15 @@ do_install_append() {
ln -s gzip ${D}${base_bindir}/zcat
}
-RDEPENDS_klibc-utils-cat = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-chroot = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-cpio = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-dd = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-dmesg = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-false = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-fstype = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-gzip = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-halt = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-ipconfig = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-kill = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-kinit.shared = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-ln = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-losetup = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-ls = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-minips = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-mkdir = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-mkfifo = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-mknod = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-mount = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-mv = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-nfsmount = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-nuke = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-pivot-root = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-poweroff = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-readlink = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-reboot = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-resume = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-run-init = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-sh.shared = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-sleep = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-sync = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-true = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-umount = "${THIS_LIBKLIBC}"
-RDEPENDS_klibc-utils-uname = "${THIS_LIBKLIBC}"
+EXTRA_KLIBC_DEPS = '${@base_conditional("KLIBC_UTILS_VARIANT", "shared", "${THIS_LIBKLIBC}", "", d)}'
PACKAGES_DYNAMIC += "^${KLIBC_UTILS_PKGNAME}-.*"
python populate_packages_prepend () {
base_bin_dir = d.expand('${base_bindir}')
- do_split_packages(d, base_bin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='', allow_links=True, allow_dirs=True)
+ do_split_packages(d, base_bin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='${EXTRA_KLIBC_DEPS}', allow_links=True, allow_dirs=True)
base_sbin_dir = d.expand('${base_sbindir}')
- do_split_packages(d, base_sbin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='', allow_dirs=True)
+ do_split_packages(d, base_sbin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='${EXTRA_KLIBC_DEPS}', allow_dirs=True)
}
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index b1f531a9b9..07b8e1ad4e 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8
# debugsources.list: No such file or directory:
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
-INC_PR = "r0"
+INC_PR = "r1"
KLIBC_ARCH = '${TARGET_ARCH}'
KLIBC_ARCH_armeb = 'arm'