summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2011-07-19 17:01:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-20 15:27:33 +0100
commitd87bedce38b54104997291b26bc991126e767c33 (patch)
treefd65aab8d7e3eb1c546fa6bd717951e6a5a05614 /meta/recipes-core/uclibc
parent78396c1719a00d104e48ec6537f5811e3c5619eb (diff)
downloadpoky-d87bedce38b54104997291b26bc991126e767c33.tar.gz
uclibc: improve packaging granularity
Put each of the libraries into its own package rather than dumping them all into libc0. This saves ~300kB on the installed size of an i586 micro-base-image and avoids the need to set the hated LEAD_SONAME. (From OE-Core rev: fd1b9994f75117d47c088cdbe0d2aec0b600b31c) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/uclibc')
-rw-r--r--meta/recipes-core/uclibc/uclibc.inc31
1 files changed, 16 insertions, 15 deletions
diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
index 23a8ecb6ac..222c34f383 100644
--- a/meta/recipes-core/uclibc/uclibc.inc
+++ b/meta/recipes-core/uclibc/uclibc.inc
@@ -13,7 +13,7 @@ SECTION = "libs"
13LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ 13LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \
14 file://COPYING.LIB.boilerplate;md5=aaddeadcddeb918297e0e4afc52ce46f \ 14 file://COPYING.LIB.boilerplate;md5=aaddeadcddeb918297e0e4afc52ce46f \
15file://${S}/test/regex/testregex.c;startline=1;endline=31;md5=234efb227d0a40677f895e4a1e26e960" 15file://${S}/test/regex/testregex.c;startline=1;endline=31;md5=234efb227d0a40677f895e4a1e26e960"
16INC_PR = "r2" 16INC_PR = "r4"
17 17
18require uclibc-config.inc 18require uclibc-config.inc
19STAGINGCC = "gcc-cross-intermediate" 19STAGINGCC = "gcc-cross-intermediate"
@@ -49,27 +49,28 @@ RDEPENDS_${PN}-dev = "linux-libc-headers-dev"
49INHIBIT_DEFAULT_DEPS = "1" 49INHIBIT_DEFAULT_DEPS = "1"
50 50
51PACKAGES =+ "ldd uclibc-utils-dbg uclibc-utils uclibc-gconv uclibc-thread-db uclibc-argp uclibc-backtrace" 51PACKAGES =+ "ldd uclibc-utils-dbg uclibc-utils uclibc-gconv uclibc-thread-db uclibc-argp uclibc-backtrace"
52 52PACKAGES =+ "uclibc-libcrypt uclibc-libintl uclibc-libnsl uclibc-libresolv uclibc-libm"
53LEAD_SONAME = "libc.so" 53PACKAGES =+ "uclibc-libdl uclibc-libutil uclibc-libpthread uclibc-librt"
54
55FILES_uclibc-libcrypt = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so"
56FILES_uclibc-libintl = "${base_libdir}/libintl*.so.* ${base_libdir}/libintl-*.so"
57FILES_uclibc-libnsl = "${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so"
58FILES_uclibc-libresolv = "${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so"
59FILES_uclibc-libm = "${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so"
60FILES_uclibc-libdl = "${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so"
61FILES_uclibc-libutil = "${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so"
62FILES_uclibc-libpthread = "${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so"
63FILES_uclibc-librt = "${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so"
54 64
55# The last line (gdb and lib1) is for uclinux-uclibc builds 65# The last line (gdb and lib1) is for uclinux-uclibc builds
56uclibc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so \ 66uclibc_baselibs = "${base_libdir}/ld*.so.* ${base_libdir}/ld*.so \
57 ${base_libdir}/libintl*.so.* ${base_libdir}/libintl-*.so \
58 ${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so \
59 ${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so \
60 ${base_libdir}/ld*.so.* ${base_libdir}/ld*.so \
61 ${base_libdir}/libc*.so.* ${base_libdir}/libuClibc-*.so \ 67 ${base_libdir}/libc*.so.* ${base_libdir}/libuClibc-*.so \
62 ${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so \
63 ${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so \
64 ${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so \
65 ${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so \
66 ${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so \
67 ${libdir}/libc.gdb ${libdir}/libc ${base_libdir}/lib1.so \ 68 ${libdir}/libc.gdb ${libdir}/libc ${base_libdir}/lib1.so \
68 " 69 "
69FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \ 70FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \
70 ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale" 71 ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale"
71FILES_ldd = "${bindir}/ldd" 72FILES_ldd = "${bindir}/ldd"
72FILES_uclibc-dev_append = "\ 73FILES_${PN}-dev_append = "\
73 ${libdir}/lib*.so \ 74 ${libdir}/lib*.so \
74 ${libdir}/*_nonshared.a \ 75 ${libdir}/*_nonshared.a \
75 ${libdir}/[S]*crt[1in].o \ 76 ${libdir}/[S]*crt[1in].o \
@@ -84,7 +85,7 @@ FILES_uclibc-thread-db = "${base_libdir}/libthread_db*"
84FILES_uclibc-argp = "${base_libdir}/libuargp-*.so ${base_libdir}/libuargp*.so.*" 85FILES_uclibc-argp = "${base_libdir}/libuargp-*.so ${base_libdir}/libuargp*.so.*"
85FILES_uclibc-backtrace = "${base_libdir}/libubacktrace-*.so ${base_libdir}/libubacktrace*.so.*" 86FILES_uclibc-backtrace = "${base_libdir}/libubacktrace-*.so ${base_libdir}/libubacktrace*.so.*"
86 87
87RPROVIDES_uclibc-dev += "libc-dev virtual-libc-dev" 88RPROVIDES_${PN}-dev += "libc-dev virtual-libc-dev"
88# uclibc does not really have libsegfault but then using the one from glibc is also not 89# uclibc does not really have libsegfault but then using the one from glibc is also not
89# going to work. So we pretend that we have it to make bitbake not pull other recipes 90# going to work. So we pretend that we have it to make bitbake not pull other recipes
90# to satisfy this dependency for the images/tasks 91# to satisfy this dependency for the images/tasks