1.1 --- a/config/libc/glibc-eglibc.in-common Sun Jul 31 00:46:45 2011 +0200
1.2 +++ b/config/libc/glibc-eglibc.in-common Fri Jul 29 13:25:57 2011 +0200
1.3 @@ -144,6 +144,13 @@
1.4 comment "| or try again later... :-( "
1.5 endif
1.6
1.7 +config LIBC_LOCALES
1.8 + bool
1.9 + prompt "Build and install locales"
1.10 + help
1.11 + Whether to build and install the libc locale files for the target,
1.12 + which is required in order to support internationalization.
1.13 +
1.14 if KERNEL_linux
1.15
1.16 choice LIBC_GLIBC_SUPPORTED_KERNEL
2.1 --- a/scripts/build/libc/glibc-eglibc.sh-common Sun Jul 31 00:46:45 2011 +0200
2.2 +++ b/scripts/build/libc/glibc-eglibc.sh-common Fri Jul 29 13:25:57 2011 +0200
2.3 @@ -47,6 +47,10 @@
2.4 find . -type f -name configure -exec touch {} \; 2>&1 |CT_DoLog ALL
2.5
2.6 CT_Popd
2.7 +
2.8 + if [ "${CT_LIBC_LOCALES}" = "y" ]; then
2.9 + do_libc_locales_extract
2.10 + fi
2.11 }
2.12
2.13 # Build and install headers and start files
2.14 @@ -294,6 +298,10 @@
2.15 "${extra_make_args[@]}" \
2.16 install_root="${CT_SYSROOT_DIR}" \
2.17 install
2.18 +
2.19 + if [ "${CT_LIBC_LOCALES}" = "y" ]; then
2.20 + do_libc_locales
2.21 + fi
2.22 fi
2.23
2.24 CT_EndStep
2.25 @@ -353,3 +361,15 @@
2.26 ;;
2.27 esac
2.28 }
2.29 +
2.30 +# Extract the files required for the libc locales
2.31 +# Nothing to do by default
2.32 +do_libc_locales_extract() {
2.33 + :
2.34 +}
2.35 +
2.36 +# Build and install the libc locales
2.37 +# Nothing to do by default
2.38 +do_libc_locales() {
2.39 + :
2.40 +}