diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2012-11-01 18:50:11 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-11-16 11:25:36 +0100 |
commit | de40d9357d793cba0fd17cd46106ffd6b7fdc85f (patch) | |
tree | 861005bf44aff9ff50d4631732f1e8b11c79ff7a | |
parent | 8e489120f9c4ae91e121ae9d33fecc1aacdf3257 (diff) | |
download | meta-openembedded-de40d9357d793cba0fd17cd46106ffd6b7fdc85f.tar.gz |
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>
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-utils.inc | 43 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 2 |
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 16cba8909..cdcaafa55 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc-utils.inc | |||
@@ -1,8 +1,7 @@ | |||
1 | KLIBC_UTILS_VARIANT ?= "shared" | 1 | KLIBC_UTILS_VARIANT ?= "shared" |
2 | KLIBC_UTILS_PKGNAME ?= "klibc-utils" | 2 | KLIBC_UTILS_PKGNAME ?= "klibc-utils" |
3 | 3 | ||
4 | # modprobe and losetup go to ${base_sbindir} | 4 | # losetup goes in ${base_sbindir} |
5 | # even though debian packages all in /usr/lib/klibc/bin | ||
6 | 5 | ||
7 | do_install_append() { | 6 | do_install_append() { |
8 | 7 | ||
@@ -56,49 +55,15 @@ do_install_append() { | |||
56 | ln -s gzip ${D}${base_bindir}/zcat | 55 | ln -s gzip ${D}${base_bindir}/zcat |
57 | } | 56 | } |
58 | 57 | ||
59 | RDEPENDS_klibc-utils-cat = "${THIS_LIBKLIBC}" | 58 | EXTRA_KLIBC_DEPS = '${@base_conditional("KLIBC_UTILS_VARIANT", "shared", "${THIS_LIBKLIBC}", "", d)}' |
60 | RDEPENDS_klibc-utils-chroot = "${THIS_LIBKLIBC}" | ||
61 | RDEPENDS_klibc-utils-cpio = "${THIS_LIBKLIBC}" | ||
62 | RDEPENDS_klibc-utils-dd = "${THIS_LIBKLIBC}" | ||
63 | RDEPENDS_klibc-utils-dmesg = "${THIS_LIBKLIBC}" | ||
64 | RDEPENDS_klibc-utils-false = "${THIS_LIBKLIBC}" | ||
65 | RDEPENDS_klibc-utils-fstype = "${THIS_LIBKLIBC}" | ||
66 | RDEPENDS_klibc-utils-gzip = "${THIS_LIBKLIBC}" | ||
67 | RDEPENDS_klibc-utils-halt = "${THIS_LIBKLIBC}" | ||
68 | RDEPENDS_klibc-utils-ipconfig = "${THIS_LIBKLIBC}" | ||
69 | RDEPENDS_klibc-utils-kill = "${THIS_LIBKLIBC}" | ||
70 | RDEPENDS_klibc-utils-kinit.shared = "${THIS_LIBKLIBC}" | ||
71 | RDEPENDS_klibc-utils-ln = "${THIS_LIBKLIBC}" | ||
72 | RDEPENDS_klibc-utils-losetup = "${THIS_LIBKLIBC}" | ||
73 | RDEPENDS_klibc-utils-ls = "${THIS_LIBKLIBC}" | ||
74 | RDEPENDS_klibc-utils-minips = "${THIS_LIBKLIBC}" | ||
75 | RDEPENDS_klibc-utils-mkdir = "${THIS_LIBKLIBC}" | ||
76 | RDEPENDS_klibc-utils-mkfifo = "${THIS_LIBKLIBC}" | ||
77 | RDEPENDS_klibc-utils-mknod = "${THIS_LIBKLIBC}" | ||
78 | RDEPENDS_klibc-utils-mount = "${THIS_LIBKLIBC}" | ||
79 | RDEPENDS_klibc-utils-mv = "${THIS_LIBKLIBC}" | ||
80 | RDEPENDS_klibc-utils-nfsmount = "${THIS_LIBKLIBC}" | ||
81 | RDEPENDS_klibc-utils-nuke = "${THIS_LIBKLIBC}" | ||
82 | RDEPENDS_klibc-utils-pivot-root = "${THIS_LIBKLIBC}" | ||
83 | RDEPENDS_klibc-utils-poweroff = "${THIS_LIBKLIBC}" | ||
84 | RDEPENDS_klibc-utils-readlink = "${THIS_LIBKLIBC}" | ||
85 | RDEPENDS_klibc-utils-reboot = "${THIS_LIBKLIBC}" | ||
86 | RDEPENDS_klibc-utils-resume = "${THIS_LIBKLIBC}" | ||
87 | RDEPENDS_klibc-utils-run-init = "${THIS_LIBKLIBC}" | ||
88 | RDEPENDS_klibc-utils-sh.shared = "${THIS_LIBKLIBC}" | ||
89 | RDEPENDS_klibc-utils-sleep = "${THIS_LIBKLIBC}" | ||
90 | RDEPENDS_klibc-utils-sync = "${THIS_LIBKLIBC}" | ||
91 | RDEPENDS_klibc-utils-true = "${THIS_LIBKLIBC}" | ||
92 | RDEPENDS_klibc-utils-umount = "${THIS_LIBKLIBC}" | ||
93 | RDEPENDS_klibc-utils-uname = "${THIS_LIBKLIBC}" | ||
94 | 59 | ||
95 | PACKAGES_DYNAMIC += "^${KLIBC_UTILS_PKGNAME}-.*" | 60 | PACKAGES_DYNAMIC += "^${KLIBC_UTILS_PKGNAME}-.*" |
96 | 61 | ||
97 | python populate_packages_prepend () { | 62 | python populate_packages_prepend () { |
98 | 63 | ||
99 | base_bin_dir = d.expand('${base_bindir}') | 64 | base_bin_dir = d.expand('${base_bindir}') |
100 | do_split_packages(d, base_bin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='', allow_links=True, allow_dirs=True) | 65 | 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) |
101 | 66 | ||
102 | base_sbin_dir = d.expand('${base_sbindir}') | 67 | base_sbin_dir = d.expand('${base_sbindir}') |
103 | do_split_packages(d, base_sbin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='', allow_dirs=True) | 68 | do_split_packages(d, base_sbin_dir, '(.*)', '${KLIBC_UTILS_PKGNAME}-%s', 'Klibc util for %s', extra_depends='${EXTRA_KLIBC_DEPS}', allow_dirs=True) |
104 | } | 69 | } |
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index b1f531a9b..07b8e1ad4 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 | |||
10 | # debugsources.list: No such file or directory: | 10 | # debugsources.list: No such file or directory: |
11 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 11 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
12 | 12 | ||
13 | INC_PR = "r0" | 13 | INC_PR = "r1" |
14 | 14 | ||
15 | KLIBC_ARCH = '${TARGET_ARCH}' | 15 | KLIBC_ARCH = '${TARGET_ARCH}' |
16 | KLIBC_ARCH_armeb = 'arm' | 16 | KLIBC_ARCH_armeb = 'arm' |