mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b2a84e717e
commit
9c16786928
@@ -72,11 +72,21 @@ LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS
|
||||
|
||||
do_install () {
|
||||
mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir}
|
||||
cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
|
||||
cp -fpPR ${LOCALETREESRC}/${libdir}/locale ${D}${libdir}
|
||||
cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}
|
||||
cp -fpPR ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir}
|
||||
cp -fpPR ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
|
||||
if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then
|
||||
cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
|
||||
fi
|
||||
if [ -e ${LOCALETREESRC}/${libdir}/locale ]; then
|
||||
cp -fpPR ${LOCALETREESRC}/${libdir}/locale ${D}${libdir}
|
||||
fi
|
||||
if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then
|
||||
cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}
|
||||
fi
|
||||
if [ -e ${LOCALETREESRC}/${datadir}/i18n ]; then
|
||||
cp -fpPR ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir}
|
||||
fi
|
||||
if [ -e ${LOCALETREESRC}/${datadir}/locale ]; then
|
||||
cp -fpPR ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
|
||||
fi
|
||||
cp -fpPR ${LOCALETREESRC}/SUPPORTED ${WORKDIR}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user