summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc-package.inc
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2011-06-28 14:58:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 13:44:41 +0100
commit8fa9d64f1d5128f304a0d36dbf55f49ccaf784b1 (patch)
treead031554642f4b160ec5b9bd044577c03ef0c5a6 /meta/recipes-core/glibc/glibc-package.inc
parent671e580111c3f37f3c7835956db17e0425f9f937 (diff)
downloadpoky-8fa9d64f1d5128f304a0d36dbf55f49ccaf784b1.tar.gz
libc-locale: split locale handling from libc recipe.
*libc's do_package will cost a lot of time due to the locale handing, which may delay the other recipe's do_package task and affect the build performance. This commit moves locale handling into a separate recipe *libc-locale. [RP: Add fixup with recent eglibc commit conflict for FILES_pn-dbg and PACKAGES] (From OE-Core rev: c6d3242f7642f537b02870bb4eb650f0e2094b85) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc-package.inc')
-rw-r--r--meta/recipes-core/glibc/glibc-package.inc29
1 files changed, 4 insertions, 25 deletions
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 27dc4271c3..5373d56d57 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -14,34 +14,14 @@ python __anonymous () {
14 bb.data.getVar('TARGET_OS', d, 1)) 14 bb.data.getVar('TARGET_OS', d, 1))
15} 15}
16 16
17
18# Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
19# is set. The idea is to avoid running localedef on the target (at first boot)
20# to decrease initial boot time and avoid localedef being killed by the OOM
21# killer which used to effectively break i18n on machines with < 128MB RAM.
22
23# default to disabled until qemu works for everyone
24ENABLE_BINARY_LOCALE_GENERATION ?= "0"
25ENABLE_BINARY_LOCALE_GENERATION_pn-glibc-nativesdk = "0"
26
27# BINARY_LOCALE_ARCHES is a space separated list of regular expressions
28BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64 powerpc mips"
29
30# set "1" to use cross-localedef for locale generation
31# set "0" for qemu emulation of native localedef for locale generation
32LOCALE_GENERATION_WITH_CROSS-LOCALEDEF = "1"
33
34PKGSUFFIX = "" 17PKGSUFFIX = ""
35PKGSUFFIX_virtclass-nativesdk = "-nativesdk" 18PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
36 19
37PACKAGES = "${PN}-dbg ${PN} catchsegv${PKGSUFFIX} sln${PKGSUFFIX} nscd${PKGSUFFIX} \ 20PACKAGES = "${PN}-dbg ${PN} catchsegv${PKGSUFFIX} sln${PKGSUFFIX} nscd${PKGSUFFIX} \
38 ldd${PKGSUFFIX} localedef${PKGSUFFIX} ${PN}-utils ${PN}-dev ${PN}-doc \ 21 ldd${PKGSUFFIX} ${PN}-utils ${PN}-dev ${PN}-doc \
39 ${PN}-locale libsegfault${PKGSUFFIX} ${PN}-extra-nss ${PN}-thread-db \ 22 libsegfault${PKGSUFFIX} ${PN}-extra-nss ${PN}-thread-db \
40 ${PN}-pcprofile" 23 ${PN}-pcprofile"
41 24
42PACKAGES_DYNAMIC = "glibc-gconv-*${PKGSUFFIX} glibc-charmap-* glibc-localedata-* locale-base-* \
43 glibc-binary-localedata-*"
44
45libc_baselibs = "${base_libdir}/libc* ${base_libdir}/libm* ${base_libdir}/ld* \ 25libc_baselibs = "${base_libdir}/libc* ${base_libdir}/libm* ${base_libdir}/ld* \
46 ${base_libdir}/libpthread* ${base_libdir}/libresolv* ${base_libdir}/librt* \ 26 ${base_libdir}/libpthread* ${base_libdir}/libresolv* ${base_libdir}/librt* \
47 ${base_libdir}/libutil* ${base_libdir}/libnsl* ${base_libdir}/libnss_files* \ 27 ${base_libdir}/libutil* ${base_libdir}/libnsl* ${base_libdir}/libnss_files* \
@@ -77,7 +57,6 @@ FILES_catchsegv${PKGSUFFIX} = "${bindir}/catchsegv"
77RDEPENDS_catchsegv${PKGSUFFIX} = "libsegfault" 57RDEPENDS_catchsegv${PKGSUFFIX} = "libsegfault"
78FILES_glibc-pcprofile = "${base_libdir}/libpcprofile.so" 58FILES_glibc-pcprofile = "${base_libdir}/libpcprofile.so"
79FILES_glibc-thread-db = "${base_libdir}/libthread_db*" 59FILES_glibc-thread-db = "${base_libdir}/libthread_db*"
80FILES_localedef${PKGSUFFIX} = "${bindir}/localedef"
81RPROVIDES_glibc-dev += "libc-dev" 60RPROVIDES_glibc-dev += "libc-dev"
82 61
83SUMMARY_sln = "The static ln." 62SUMMARY_sln = "The static ln."
@@ -88,10 +67,10 @@ SUMMARY_glibc-extra-nss = "hesiod, NIS and NIS+ nss libraries"
88DESCRIPTION_glibc-extra-nss = "glibc: nis, nisplus and hesiod search services. 67DESCRIPTION_glibc-extra-nss = "glibc: nis, nisplus and hesiod search services.
89SUMMARY_ldd = "print shared library dependencies" 68SUMMARY_ldd = "print shared library dependencies"
90DESCRIPTION_ldd = "/usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line." 69DESCRIPTION_ldd = "/usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line."
91DESCRIPTION_localedef = "glibc: compile locale definition files"
92SUMMARY_glibc-utils = "Miscellaneous utilities provided by glibc" 70SUMMARY_glibc-utils = "Miscellaneous utilities provided by glibc"
93DESCRIPTION_glibc-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..." 71DESCRIPTION_glibc-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..."
94 72
95EXTRA_OEMAKE += "rootsbindir=${base_sbindir}" 73EXTRA_OEMAKE += "rootsbindir=${base_sbindir}"
96 74
97inherit libc-package 75inherit libc-common
76