diff options
author | Alexey Brodkin <alexey.brodkin@synopsys.com> | 2018-11-13 01:43:51 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:40 +0000 |
commit | ef637239656b1472bfcabaa87f87441dc92d6650 (patch) | |
tree | 3353402ad39d5d67b79859791e988fb321ecb704 /meta | |
parent | aae2c1ad963afea297817447a7d4ee1bb25f25d3 (diff) | |
download | poky-ef637239656b1472bfcabaa87f87441dc92d6650.tar.gz |
locale: Allow usage of cross-localedef for ARC
With this it's possible to build locale data for ARC
and not do it instead on the first boot.
(From OE-Core rev: f13c303491dc8850126ea14baedc7b63b7b5ecf4)
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/libc-package.bbclass | 2 | ||||
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc-locale.inc | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 9d09c7be6a..4c694ab5e2 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
@@ -242,6 +242,8 @@ python package_do_split_gconvs () { | |||
242 | if use_cross_localedef == "1": | 242 | if use_cross_localedef == "1": |
243 | target_arch = d.getVar('TARGET_ARCH') | 243 | target_arch = d.getVar('TARGET_ARCH') |
244 | locale_arch_options = { \ | 244 | locale_arch_options = { \ |
245 | "arc": " --uint32-align=4 --little-endian ", \ | ||
246 | "arceb": " --uint32-align=4 --big-endian ", \ | ||
245 | "arm": " --uint32-align=4 --little-endian ", \ | 247 | "arm": " --uint32-align=4 --little-endian ", \ |
246 | "armeb": " --uint32-align=4 --big-endian ", \ | 248 | "armeb": " --uint32-align=4 --big-endian ", \ |
247 | "aarch64": " --uint32-align=4 --little-endian ", \ | 249 | "aarch64": " --uint32-align=4 --little-endian ", \ |
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 882e7c429f..aa4de6e7c3 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -94,6 +94,8 @@ def generate_locale_archive(d, rootfs, target_arch, localedir): | |||
94 | # Pretty sure we don't need this for locale archive generation but | 94 | # Pretty sure we don't need this for locale archive generation but |
95 | # keeping it to be safe... | 95 | # keeping it to be safe... |
96 | locale_arch_options = { \ | 96 | locale_arch_options = { \ |
97 | "arc": ["--uint32-align=4", "--little-endian"], | ||
98 | "arceb": ["--uint32-align=4", "--big-endian"], | ||
97 | "arm": ["--uint32-align=4", "--little-endian"], | 99 | "arm": ["--uint32-align=4", "--little-endian"], |
98 | "armeb": ["--uint32-align=4", "--big-endian"], | 100 | "armeb": ["--uint32-align=4", "--big-endian"], |
99 | "aarch64": ["--uint32-align=4", "--little-endian"], | 101 | "aarch64": ["--uint32-align=4", "--little-endian"], |
diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index 1b676dc26e..57b465dd5d 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc | |||
@@ -27,7 +27,7 @@ ENABLE_BINARY_LOCALE_GENERATION_pn-nativesdk-glibc-locale = "1" | |||
27 | 27 | ||
28 | #enable locale generation on these arches | 28 | #enable locale generation on these arches |
29 | # BINARY_LOCALE_ARCHES is a space separated list of regular expressions | 29 | # BINARY_LOCALE_ARCHES is a space separated list of regular expressions |
30 | BINARY_LOCALE_ARCHES ?= "arm.* aarch64 i[3-6]86 x86_64 powerpc mips mips64 riscv32 riscv64" | 30 | BINARY_LOCALE_ARCHES ?= "arc arm.* aarch64 i[3-6]86 x86_64 powerpc mips mips64 riscv32 riscv64" |
31 | 31 | ||
32 | # set "1" to use cross-localedef for locale generation | 32 | # set "1" to use cross-localedef for locale generation |
33 | # set "0" for qemu emulation of native localedef for locale generation | 33 | # set "0" for qemu emulation of native localedef for locale generation |