glibc: add option to install all locales to the build, enable by default

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2015-09-20 17:51:31 +02:00
parent 9641602204
commit 2869f9ef88
2 changed files with 9 additions and 3 deletions

View File

@ -14,6 +14,9 @@
# Root password to integrate in the target system
ROOT_PASSWORD="openelec"
# Install glibc locales to the build (yes / no)
GLIBC_LOCALES="yes"
# Mediacenter to use (kodi / no)
MEDIACENTER="kodi"

View File

@ -139,10 +139,13 @@ post_makeinstall_target() {
# remove locales and charmaps
rm -rf $INSTALL/usr/share/i18n/charmaps
rm -rf $INSTALL/usr/share/i18n/locales
mkdir -p $INSTALL/usr/share/i18n/locales
cp -PR $ROOT/$PKG_BUILD/localedata/locales/POSIX $INSTALL/usr/share/i18n/locales
if [ ! "$GLIBC_LOCALES" = yes ]; then
rm -rf $INSTALL/usr/share/i18n/locales
mkdir -p $INSTALL/usr/share/i18n/locales
cp -PR $ROOT/$PKG_BUILD/localedata/locales/POSIX $INSTALL/usr/share/i18n/locales
fi
# create default configs
mkdir -p $INSTALL/etc