aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-package.inc
diff options
context:
space:
mode:
authorKen Werner <ken.werner@linaro.org>2012-02-15 09:49:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-21 17:53:13 +0000
commite39c6027d5b86eb94ed74e19ef708828fb547082 (patch)
tree458321cb8593259ece05e682b694c114ed5a7ef1 /meta/recipes-core/eglibc/eglibc-package.inc
parentd2c96e22de19a649ff7121e5ea0f95797abba93a (diff)
downloadopenembedded-core-contrib-e39c6027d5b86eb94ed74e19ef708828fb547082.tar.gz
Add sanity checks for eglibc locale
Add sanity checks that test for the existance of folders. This allows to use an external binary toolchain that doesn't have localization support.
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-package.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-package.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 870b95dc87..2a1d939786 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -91,7 +91,9 @@ do_install_locale () {
mv -f ${D}${libdir}/gconv ${dest}${libdir}
fi
cp -fpPR ${D}${libdir}/* ${dest}${libdir}
- mv ${D}${datadir}/i18n ${dest}${datadir}
+ if [ -e ${D}${datadir}/i18n ]; then
+ mv ${D}${datadir}/i18n ${dest}${datadir}
+ fi
cp -fpPR ${D}${datadir}/* ${dest}${datadir}
cp -fpPR ${WORKDIR}/SUPPORTED ${dest}
}