From d44205998b70aa9feef5f0ad43039d32c78d46dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20TH=C3=89BAUDEAU=22?= Date: Fri, 29 Jul 2011 13:25:57 +0200 Subject: [PATCH] libc: create an infrastructure to build and install the libc locales MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds a common glibc/eglibc infrastructure to build and install the libc locales. Signed-off-by: "Benoît THÉBAUDEAU" --- config/libc/glibc-eglibc.in-common | 7 +++++++ scripts/build/libc/glibc-eglibc.sh-common | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common index 255edb76..32cf357d 100644 --- a/config/libc/glibc-eglibc.in-common +++ b/config/libc/glibc-eglibc.in-common @@ -144,6 +144,13 @@ comment "| If that happens, bad luck... Try a previous version " comment "| or try again later... :-( " endif +config LIBC_LOCALES + bool + prompt "Build and install locales" + help + Whether to build and install the libc locale files for the target, + which is required in order to support internationalization. + if KERNEL_linux choice LIBC_GLIBC_SUPPORTED_KERNEL diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index f57e9e92..bc7fd131 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -47,6 +47,10 @@ do_libc_extract() { find . -type f -name configure -exec touch {} \; 2>&1 |CT_DoLog ALL CT_Popd + + if [ "${CT_LIBC_LOCALES}" = "y" ]; then + do_libc_locales_extract + fi } # Build and install headers and start files @@ -294,6 +298,10 @@ do_libc_backend() { "${extra_make_args[@]}" \ install_root="${CT_SYSROOT_DIR}" \ install + + if [ "${CT_LIBC_LOCALES}" = "y" ]; then + do_libc_locales + fi fi CT_EndStep @@ -353,3 +361,15 @@ do_libc_min_kernel_config() { ;; esac } + +# Extract the files required for the libc locales +# Nothing to do by default +do_libc_locales_extract() { + : +} + +# Build and install the libc locales +# Nothing to do by default +do_libc_locales() { + : +}