diff options
author | Phil Blundell <philb@gnu.org> | 2011-07-19 17:01:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-20 15:27:33 +0100 |
commit | d87bedce38b54104997291b26bc991126e767c33 (patch) | |
tree | fd65aab8d7e3eb1c546fa6bd717951e6a5a05614 /meta/recipes-core/uclibc | |
parent | 78396c1719a00d104e48ec6537f5811e3c5619eb (diff) | |
download | poky-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.inc | 31 |
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" | |||
13 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | 13 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ |
14 | file://COPYING.LIB.boilerplate;md5=aaddeadcddeb918297e0e4afc52ce46f \ | 14 | file://COPYING.LIB.boilerplate;md5=aaddeadcddeb918297e0e4afc52ce46f \ |
15 | file://${S}/test/regex/testregex.c;startline=1;endline=31;md5=234efb227d0a40677f895e4a1e26e960" | 15 | file://${S}/test/regex/testregex.c;startline=1;endline=31;md5=234efb227d0a40677f895e4a1e26e960" |
16 | INC_PR = "r2" | 16 | INC_PR = "r4" |
17 | 17 | ||
18 | require uclibc-config.inc | 18 | require uclibc-config.inc |
19 | STAGINGCC = "gcc-cross-intermediate" | 19 | STAGINGCC = "gcc-cross-intermediate" |
@@ -49,27 +49,28 @@ RDEPENDS_${PN}-dev = "linux-libc-headers-dev" | |||
49 | INHIBIT_DEFAULT_DEPS = "1" | 49 | INHIBIT_DEFAULT_DEPS = "1" |
50 | 50 | ||
51 | PACKAGES =+ "ldd uclibc-utils-dbg uclibc-utils uclibc-gconv uclibc-thread-db uclibc-argp uclibc-backtrace" | 51 | PACKAGES =+ "ldd uclibc-utils-dbg uclibc-utils uclibc-gconv uclibc-thread-db uclibc-argp uclibc-backtrace" |
52 | 52 | PACKAGES =+ "uclibc-libcrypt uclibc-libintl uclibc-libnsl uclibc-libresolv uclibc-libm" | |
53 | LEAD_SONAME = "libc.so" | 53 | PACKAGES =+ "uclibc-libdl uclibc-libutil uclibc-libpthread uclibc-librt" |
54 | |||
55 | FILES_uclibc-libcrypt = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so" | ||
56 | FILES_uclibc-libintl = "${base_libdir}/libintl*.so.* ${base_libdir}/libintl-*.so" | ||
57 | FILES_uclibc-libnsl = "${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so" | ||
58 | FILES_uclibc-libresolv = "${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so" | ||
59 | FILES_uclibc-libm = "${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so" | ||
60 | FILES_uclibc-libdl = "${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so" | ||
61 | FILES_uclibc-libutil = "${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so" | ||
62 | FILES_uclibc-libpthread = "${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so" | ||
63 | FILES_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 |
56 | uclibc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so \ | 66 | uclibc_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 | " |
69 | FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \ | 70 | FILES_${PN} = "${sysconfdir} ${uclibc_baselibs} /sbin/ldconfig \ |
70 | ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale" | 71 | ${libexecdir} ${datadir}/zoneinfo ${libdir}/locale" |
71 | FILES_ldd = "${bindir}/ldd" | 72 | FILES_ldd = "${bindir}/ldd" |
72 | FILES_uclibc-dev_append = "\ | 73 | FILES_${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*" | |||
84 | FILES_uclibc-argp = "${base_libdir}/libuargp-*.so ${base_libdir}/libuargp*.so.*" | 85 | FILES_uclibc-argp = "${base_libdir}/libuargp-*.so ${base_libdir}/libuargp*.so.*" |
85 | FILES_uclibc-backtrace = "${base_libdir}/libubacktrace-*.so ${base_libdir}/libubacktrace*.so.*" | 86 | FILES_uclibc-backtrace = "${base_libdir}/libubacktrace-*.so ${base_libdir}/libubacktrace*.so.*" |
86 | 87 | ||
87 | RPROVIDES_uclibc-dev += "libc-dev virtual-libc-dev" | 88 | RPROVIDES_${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 |