public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
To: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: crossgcc@sourceware.org
Subject: [PATCH 2 of 5] libc: create an infrastructure to build and install the libc locales
Date: Thu, 28 Jul 2011 19:10:00 -0000	[thread overview]
Message-ID: <4fed02058cc3276180d6.1311880210@advlt005-ubuntu> (raw)
In-Reply-To: <patchbomb.1311880208@advlt005-ubuntu>

# HG changeset patch
# User "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
# Date 1311780145 -7200
# Node ID 4fed02058cc3276180d6014899062f83e620eb37
# Parent  0ee44cad2124dcf96979819f0ee4851dd6ef2334
libc: create an infrastructure to build and install the libc locales

This patch adds a common glibc/eglibc infrastructure to build and install the
libc locales.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>

diff --git a/config/libc/glibc-eglibc.in-common b/config/libc/glibc-eglibc.in-common
--- a/config/libc/glibc-eglibc.in-common
+++ b/config/libc/glibc-eglibc.in-common
@@ -144,6 +144,13 @@
 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/eglibc.sh b/scripts/build/libc/eglibc.sh
--- a/scripts/build/libc/eglibc.sh
+++ b/scripts/build/libc/eglibc.sh
@@ -95,3 +95,15 @@
 
     CT_EndStep
 }
+
+# Extract the files required for the libc locales
+# Nothing to do
+do_libc_locales_extract() {
+    :
+}
+
+# Build and install the libc locales
+# Not yet supported
+do_libc_locales() {
+    :
+}
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common
--- a/scripts/build/libc/glibc-eglibc.sh-common
+++ b/scripts/build/libc/glibc-eglibc.sh-common
@@ -47,6 +47,10 @@
     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 @@
                               "${extra_make_args[@]}"           \
                               install_root="${CT_SYSROOT_DIR}"  \
                               install
+
+        if [ "${CT_LIBC_LOCALES}" = "y" ]; then
+            do_libc_locales
+        fi
     fi
 
     CT_EndStep
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh
--- a/scripts/build/libc/glibc.sh
+++ b/scripts/build/libc/glibc.sh
@@ -55,3 +55,15 @@
 do_libc_check_config() {
     :
 }
+
+# Extract the files required for the libc locales
+# Nothing to do
+do_libc_locales_extract() {
+    :
+}
+
+# Build and install the libc locales
+# Not yet supported
+do_libc_locales() {
+    :
+}

  parent reply	other threads:[~2011-07-28 19:10 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <71250406-36a5-4520-8623-20c1c3bc57b4@mx-12>
2011-05-18 15:39 ` [CT-NG 1.11.1] eglibc internationalization support Benoît THÉBAUDEAU
2011-05-18 17:14   ` Yann E. MORIN
2011-05-18 17:30     ` Benoît THÉBAUDEAU
2011-06-06 17:32       ` Benoît THÉBAUDEAU
2011-06-09 13:42         ` Benoît THÉBAUDEAU
2011-06-09 21:53           ` Yann E. MORIN
2011-06-10 21:44             ` Benoît THÉBAUDEAU
2011-07-28 19:10               ` [PATCH 0 of 5] libc " Benoît THÉBAUDEAU
2011-07-28 19:10                 ` [PATCH 3 of 5] scripts/eglibc: add support for locales Benoît THÉBAUDEAU
2011-07-28 20:29                   ` Yann E. MORIN
2011-07-28 19:10                 ` [PATCH 1 of 5] scripts/libc: do not build add-ons by default Benoît THÉBAUDEAU
2011-07-28 20:03                   ` Yann E. MORIN
2011-07-28 20:11                     ` [PATCH] " Benoît THÉBAUDEAU
2011-07-28 21:03                       ` Yann E. MORIN
2011-07-28 19:10                 ` [PATCH 5 of 5] scripts/functions: force extract folder to archive basename Benoît THÉBAUDEAU
2011-07-28 21:00                   ` Yann E. MORIN
2011-07-29 13:42                     ` [PATCH 0 of 5] libc internationalization support Benoît THÉBAUDEAU
2011-07-29 13:42                       ` [PATCH 1 of 5] scripts/functions: force extract folder to archive basename Benoît THÉBAUDEAU
2011-07-29 21:20                         ` Yann E. MORIN
2011-07-29 13:42                       ` [PATCH 2 of 5] libc: create an infrastructure to build and install the libc locales Benoît THÉBAUDEAU
2011-07-29 13:42                       ` [PATCH 3 of 5] libc/eglibc: add support for locales Benoît THÉBAUDEAU
2011-07-29 13:51                       ` [PATCH 5 of 5] libc: remove unneeded glibc/eglibc common functions Benoît THÉBAUDEAU
2011-07-29 13:51                       ` [PATCH 4 of 5] libc/glibc: add partial support for locales Benoît THÉBAUDEAU
2011-07-29 21:34                       ` [PATCH 0 of 5] libc internationalization support Yann E. MORIN
2011-08-01 11:13                         ` Benoît THÉBAUDEAU
2011-08-01 11:23                           ` Yann E. MORIN
2011-08-05 22:01                       ` Yann E. MORIN
2011-07-28 19:10                 ` Benoît THÉBAUDEAU [this message]
2011-07-28 20:10                   ` [PATCH 2 of 5] libc: create an infrastructure to build and install the libc locales Yann E. MORIN
2011-07-28 19:16                 ` [PATCH 4 of 5] scripts/glibc: add partial support for locales Benoît THÉBAUDEAU
2011-07-28 20:54                   ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fed02058cc3276180d6.1311880210@advlt005-ubuntu \
    --to=benoit.thebaudeau@advansee.com \
    --cc=crossgcc@sourceware.org \
    --cc=yann.morin.1998@anciens.enib.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).