diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc-locale_2.10.1.bb')
-rw-r--r-- | meta/recipes-core/glibc/glibc-locale_2.10.1.bb | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc-locale_2.10.1.bb b/meta/recipes-core/glibc/glibc-locale_2.10.1.bb new file mode 100644 index 0000000000..d8ff12d274 --- /dev/null +++ b/meta/recipes-core/glibc/glibc-locale_2.10.1.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | #INHIBIT_DEFAULT_DEPS = "1" | ||
2 | LICENSE = "LGPL" | ||
3 | |||
4 | BPN = "glibc" | ||
5 | |||
6 | do_fetch[noexec] = "1" | ||
7 | do_unpack[noexec] = "1" | ||
8 | do_patch[noexec] = "1" | ||
9 | do_configure[noexec] = "1" | ||
10 | do_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 | ||
18 | ENABLE_BINARY_LOCALE_GENERATION ?= "0" | ||
19 | ENABLE_BINARY_LOCALE_GENERATION_pn-glibc-locale-nativesdk = "0" | ||
20 | |||
21 | #enable locale generation on these arches | ||
22 | # BINARY_LOCALE_ARCHES is a space separated list of regular expressions | ||
23 | BINARY_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 | ||
27 | LOCALE_GENERATION_WITH_CROSS-LOCALEDEF = "1" | ||
28 | |||
29 | PR = "r0" | ||
30 | |||
31 | PKGSUFFIX = "" | ||
32 | PKGSUFFIX_virtclass-nativesdk = "-nativesdk" | ||
33 | |||
34 | PROVIDES = "virtual/libc-locale" | ||
35 | |||
36 | PACKAGES = "glibc-locale localedef${PKGSUFFIX}" | ||
37 | |||
38 | PACKAGES_DYNAMIC = "locale-base-* \ | ||
39 | glibc-gconv-*${PKGSUFFIX} glibc-charmap-* glibc-localedata-* glibc-binary-localedata-*" | ||
40 | |||
41 | FILES_localedef${PKGSUFFIX} = "${bindir}/localedef" | ||
42 | |||
43 | DESCRIPTION_localedef = "glibc: compile locale definition files" | ||
44 | |||
45 | do_install () { | ||
46 | cp -fpPR ${STAGING_INCDIR}/glibc-locale-internal-${MULTIMACH_TARGET_SYS}/* ${D} | ||
47 | cp -fpPR ${D}/SUPPORTED ${WORKDIR} | ||
48 | } | ||
49 | |||
50 | do_install[depends] += "virtual/libc${PKGSUFFIX}:do_populate_sysroot" | ||
51 | |||
52 | BBCLASSEXTEND = "nativesdk" | ||