summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-locale.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 13:30:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 13:44:42 +0100
commit73a0088908cf1b814f841c6ec2ab2c80b0b13f2c (patch)
treef2060f5fd6c97937b9f2bd6a13dce051263dd4a1 /meta/recipes-core/eglibc/eglibc-locale.inc
parent9fc32c40af66768f77a9ecec24389eb8a38a6cae (diff)
downloadpoky-73a0088908cf1b814f841c6ec2ab2c80b0b13f2c.tar.gz
eglibc: Fix version 2.12 after locale changes
(From OE-Core rev: aef499ba1356f7f21f0f2589da74fa1ea82718c9) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-locale.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-locale.inc58
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
new file mode 100644
index 0000000000..ed6c099c6c
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -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"