summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc
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/eglibc
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/eglibc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-initial_2.13.bb4
-rw-r--r--meta/recipes-core/eglibc/eglibc-locale_2.13.bb58
-rw-r--r--meta/recipes-core/eglibc/eglibc-package.inc32
-rw-r--r--meta/recipes-core/eglibc/eglibc.inc2
-rw-r--r--meta/recipes-core/eglibc/eglibc_2.13.bb12
5 files changed, 78 insertions, 30 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-initial_2.13.bb b/meta/recipes-core/eglibc/eglibc-initial_2.13.bb
index 787c762609..b934f5b1bb 100644
--- a/meta/recipes-core/eglibc/eglibc-initial_2.13.bb
+++ b/meta/recipes-core/eglibc/eglibc-initial_2.13.bb
@@ -1,6 +1,10 @@
1require eglibc_${PV}.bb 1require eglibc_${PV}.bb
2require eglibc-initial.inc 2require eglibc-initial.inc
3 3
4do_install_locale() {
5 :
6}
7
4do_configure_prepend () { 8do_configure_prepend () {
5 unset CFLAGS 9 unset CFLAGS
6} 10}
diff --git a/meta/recipes-core/eglibc/eglibc-locale_2.13.bb b/meta/recipes-core/eglibc/eglibc-locale_2.13.bb
new file mode 100644
index 0000000000..ed6c099c6c
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-locale_2.13.bb
@@ -0,0 +1,58 @@
1INHIBIT_DEFAULT_DEPS = "1"
2LICENSE = "LGPL"
3
4BPN = "eglibc"
5
6do_fetch[noexec] = "1"
7do_unpack[noexec] = "1"
8do_patch[noexec] = "1"
9do_configure[noexec] = "1"
10do_compile[noexec] = "1"
11
12# Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
13# is set. The idea is to avoid running localedef on the target (at first boot)
14# to decrease initial boot time and avoid localedef being killed by the OOM
15# killer which used to effectively break i18n on machines with < 128MB RAM.
16
17# default to disabled
18ENABLE_BINARY_LOCALE_GENERATION ?= "0"
19ENABLE_BINARY_LOCALE_GENERATION_pn-eglibc-locale-nativesdk = "0"
20
21#enable locale generation on these arches
22# BINARY_LOCALE_ARCHES is a space separated list of regular expressions
23BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64 powerpc mips"
24
25# set "1" to use cross-localedef for locale generation
26# set "0" for qemu emulation of native localedef for locale generation
27LOCALE_GENERATION_WITH_CROSS-LOCALEDEF = "1"
28
29PR = "r0"
30
31PKGSUFFIX = ""
32PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
33
34PACKAGES = "eglibc-locale localedef${PKGSUFFIX}"
35
36PACKAGES_DYNAMIC = "locale-base-* \
37 eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* \
38 glibc-gconv-*${PKGSUFFIX} glibc-charmap-* glibc-localedata-* glibc-binary-localedata-*"
39
40PROVIDES = "virtual/libc-locale${PKGSUFFIX}"
41
42RPROVIDES_eglibc-locale = "glibc-locale"
43
44FILES_eglibc-gconv = "${libdir}/gconv/*"
45FILES_localedef${PKGSUFFIX} = "${bindir}/localedef"
46
47do_install () {
48 cp -fpPR ${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}/* ${D}
49 cp -fpPR ${D}/SUPPORTED ${WORKDIR}
50}
51
52DESCRIPTION_localedef = "eglibc: compile locale definition files"
53
54inherit libc-package
55
56do_install[depends] += "virtual/libc${PKGSUFFIX}:do_populate_sysroot"
57
58BBCLASSEXTEND = "nativesdk"
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index b5531ab01d..fd8fee8031 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -14,35 +14,13 @@ python __anonymous () {
14 bb.data.getVar('TARGET_OS', d, 1)) 14 bb.data.getVar('TARGET_OS', d, 1))
15} 15}
16 16
17# Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION
18# is set. The idea is to avoid running localedef on the target (at first boot)
19# to decrease initial boot time and avoid localedef being killed by the OOM
20# killer which used to effectively break i18n on machines with < 128MB RAM.
21
22# default to disabled
23ENABLE_BINARY_LOCALE_GENERATION ?= "0"
24ENABLE_BINARY_LOCALE_GENERATION_pn-eglibc-nativesdk = "0"
25
26#enable locale generation on these arches
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
34# Set this to zero if you don't want ldconfig in the output package 17# Set this to zero if you don't want ldconfig in the output package
35USE_LDCONFIG ?= "1" 18USE_LDCONFIG ?= "1"
36 19
37PKGSUFFIX = "" 20PKGSUFFIX = ""
38PKGSUFFIX_virtclass-nativesdk = "-nativesdk" 21PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
39 22
40PACKAGES = "${PN}-dbg ${PN} catchsegv${PKGSUFFIX} sln${PKGSUFFIX} nscd${PKGSUFFIX} ldd${PKGSUFFIX} localedef${PKGSUFFIX} libcidn ${PN}-utils ${PN}-pic ${PN}-dev eglibc-doc eglibc-locale libmemusage libsegfault${PKGSUFFIX} eglibc-extra-nss eglibc-thread-db${PKGSUFFIX} eglibc-pcprofile libsotruss${PKGSUFFIX}" 23PACKAGES = "${PN}-dbg ${PN} catchsegv${PKGSUFFIX} sln${PKGSUFFIX} nscd${PKGSUFFIX} ldd${PKGSUFFIX} ${PN}-utils ${PN}-pic ${PN}-dev eglibc-doc libcidn libmemusage libsegfault${PKGSUFFIX} eglibc-extra-nss eglibc-thread-db${PKGSUFFIX} eglibc-pcprofile libsotruss${PKGSUFFIX}"
41
42PACKAGES_DYNAMIC = " \
43 glibc-gconv-*${PKGSUFFIX} glibc-charmap-* glibc-localedata-* glibc-binary-localedata-* \
44 eglibc-gconv-* eglibc-charmap-* eglibc-localedata-* eglibc-binary-localedata-* \
45 locale-base-*${PKGSUFFIX}"
46 24
47# Create a eglibc-binaries 25# Create a eglibc-binaries
48ALLOW_EMPTY_${PN}-binaries = "1" 26ALLOW_EMPTY_${PN}-binaries = "1"
@@ -69,7 +47,6 @@ RPROVIDES_eglibc-utils = "glibc-utils"
69RPROVIDES_eglibc-pic = "glibc-pic" 47RPROVIDES_eglibc-pic = "glibc-pic"
70RPROVIDES_eglibc-dev = "glibc-dev" 48RPROVIDES_eglibc-dev = "glibc-dev"
71RPROVIDES_eglibc-doc = "glibc-doc" 49RPROVIDES_eglibc-doc = "glibc-doc"
72RPROVIDES_eglibc-locale = "glibc-locale"
73RPROVIDES_eglibc-extra-nss = "glibc-extra-nss" 50RPROVIDES_eglibc-extra-nss = "glibc-extra-nss"
74RPROVIDES_eglibc-thread-db = "glibc-thread-db" 51RPROVIDES_eglibc-thread-db = "glibc-thread-db"
75RPROVIDES_eglibc-pcprofile = "glibc-pcprofile" 52RPROVIDES_eglibc-pcprofile = "glibc-pcprofile"
@@ -89,14 +66,12 @@ FILES_eglibc-dev_append += "${bindir}/rpcgen ${libdir}/*.a \
89 ${base_libdir}/*.a ${base_libdir}/*.o ${datadir}/aclocal" 66 ${base_libdir}/*.a ${base_libdir}/*.o ${datadir}/aclocal"
90FILES_nscd${PKGSUFFIX} = "${sbindir}/nscd*" 67FILES_nscd${PKGSUFFIX} = "${sbindir}/nscd*"
91FILES_eglibc-utils = "${bindir}/* ${sbindir}/*" 68FILES_eglibc-utils = "${bindir}/* ${sbindir}/*"
92FILES_eglibc-gconv = "${libdir}/gconv/*" 69FILES_${PN}-dbg += "${libexecdir}/*/.debug ${libdir}/audit/.debug"
93FILES_${PN}-dbg += "${libexecdir}/*/.debug ${libdir}/gconv/.debug ${libdir}/audit/.debug"
94FILES_catchsegv${PKGSUFFIX} = "${bindir}/catchsegv" 70FILES_catchsegv${PKGSUFFIX} = "${bindir}/catchsegv"
95RDEPENDS_catchsegv${PKGSUFFIX} = "libsegfault" 71RDEPENDS_catchsegv${PKGSUFFIX} = "libsegfault"
96EDEPENDS_eglibc-utils = "libsotruss" 72EDEPENDS_eglibc-utils = "libsotruss"
97FILES_eglibc-pcprofile = "${base_libdir}/libpcprofile.so" 73FILES_eglibc-pcprofile = "${base_libdir}/libpcprofile.so"
98FILES_eglibc-thread-db${PKGSUFFIX} = "${base_libdir}/libthread_db*" 74FILES_eglibc-thread-db${PKGSUFFIX} = "${base_libdir}/libthread_db*"
99FILES_localedef${PKGSUFFIX} = "${bindir}/localedef"
100RPROVIDES_eglibc-dev += "libc-dev" 75RPROVIDES_eglibc-dev += "libc-dev"
101 76
102SUMMARY_sln = "The static ln." 77SUMMARY_sln = "The static ln."
@@ -107,10 +82,9 @@ SUMMARY_eglibc-extra-nss = "hesiod, NIS and NIS+ nss libraries"
107DESCRIPTION_eglibc-extra-nss = "eglibc: nis, nisplus and hesiod search services." 82DESCRIPTION_eglibc-extra-nss = "eglibc: nis, nisplus and hesiod search services."
108SUMMARY_ldd = "print shared library dependencies" 83SUMMARY_ldd = "print shared library dependencies"
109DESCRIPTION_ldd = "/usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line." 84DESCRIPTION_ldd = "/usr/bin/ldd prints shared library dependencies for each program or shared library specified on the command line."
110DESCRIPTION_localedef = "eglibc: compile locale definition files"
111SUMMARY_eglibc-utils = "Miscellaneous utilities provided by eglibc" 85SUMMARY_eglibc-utils = "Miscellaneous utilities provided by eglibc"
112DESCRIPTION_eglibc-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..." 86DESCRIPTION_eglibc-utils = "Miscellaneous utilities including getconf, iconf, locale, gencat, tzselect, zic, rpcinfo, ..."
113DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs" 87DESCRIPTION_libsotruss = "Library to support sotruss which traces calls through PLTs"
114 88
115inherit libc-package 89inherit libc-common
116 90
diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc
index 616f1aff6d..74afb9d2b0 100644
--- a/meta/recipes-core/eglibc/eglibc.inc
+++ b/meta/recipes-core/eglibc/eglibc.inc
@@ -43,7 +43,7 @@ EGLIBCPARALLELISM := "PARALLELMFLAGS="${PARALLEL_MAKE}""
43EXTRA_OEMAKE += ${EGLIBCPARALLELISM} 43EXTRA_OEMAKE += ${EGLIBCPARALLELISM}
44PARALLEL_MAKE = "" 44PARALLEL_MAKE = ""
45 45
46PACKAGES = "glibc catchsegv sln nscd ldd localedef glibc-utils glibc-dev glibc-doc glibc-locale libsegfault glibc-extra-nss glibc-thread-db glibc-pcprofile" 46PACKAGES = "glibc catchsegv sln nscd ldd glibc-utils glibc-dev glibc-doc libsegfault glibc-extra-nss glibc-thread-db glibc-pcprofile"
47 47
48OE_FEATURES = "${@features_to_eglibc_settings(d)}" 48OE_FEATURES = "${@features_to_eglibc_settings(d)}"
49do_configure_prepend() { 49do_configure_prepend() {
diff --git a/meta/recipes-core/eglibc/eglibc_2.13.bb b/meta/recipes-core/eglibc/eglibc_2.13.bb
index 3490d2db9f..603d9cdc62 100644
--- a/meta/recipes-core/eglibc/eglibc_2.13.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.13.bb
@@ -110,6 +110,18 @@ do_compile () {
110 ) 110 )
111} 111}
112 112
113do_install_locale () {
114 dest=${D}/${includedir}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}
115 install -d ${dest} ${dest}${bindir}
116 cp -fpPR ${D}${base_libdir} ${dest}${base_prefix}
117 cp -fpPR ${D}${libdir} ${dest}${exec_prefix}
118 cp -fpPR ${D}${datadir} ${dest}${exec_prefix}
119 cp -fpPR ${D}${bindir}/localedef ${dest}${bindir}
120 cp -fpPR ${WORKDIR}/SUPPORTED ${dest}
121}
122
123addtask do_install_locale after do_install before do_populate_sysroot
124
113require eglibc-package.inc 125require eglibc-package.inc
114 126
115BBCLASSEXTEND = "nativesdk" 127BBCLASSEXTEND = "nativesdk"