summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-locale.inc
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2012-09-24 12:00:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-25 10:41:28 +0100
commit6ee9ebc42575d24bc5bcd5da175c81e4ea7ccb38 (patch)
treec9865126c092d3d78b3c800c2b80b19ce9b49499 /meta/recipes-core/eglibc/eglibc-locale.inc
parentd02f02950ef4aff9ef9726cc364dd041e514fd3a (diff)
downloadpoky-6ee9ebc42575d24bc5bcd5da175c81e4ea7ccb38.tar.gz
Add and use 'localedir' variable
This avoids the hardcoding of ${libdir}/locale which is all over the place, and will facilitate use of ${exec_prefix}/lib/locale instead of ${libdir}/locale. This doesn't actually change any output at this time. Verified this with buildhistory against the packages produced from core-image-base. (From OE-Core rev: b744f4cc2912334b8493a89525fd02af8e9b8edf) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc/eglibc-locale.inc')
-rw-r--r--meta/recipes-core/eglibc/eglibc-locale.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
index 296afdef6e..105cf2efd3 100644
--- a/meta/recipes-core/eglibc/eglibc-locale.inc
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -69,12 +69,12 @@ FILES_localedef = "${bindir}/localedef"
69LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}" 69LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}"
70 70
71do_install () { 71do_install () {
72 mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir} 72 mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir} ${D}${localedir}
73 if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then 73 if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then
74 cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir} 74 cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
75 fi 75 fi
76 if [ -e ${LOCALETREESRC}/${libdir}/locale ]; then 76 if [ -n "$(ls ${LOCALETREESRC}/${localedir})" ]; then
77 cp -fpPR ${LOCALETREESRC}/${libdir}/locale ${D}${libdir} 77 cp -fpPR ${LOCALETREESRC}/${localedir}/* ${D}${localedir}
78 fi 78 fi
79 if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then 79 if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then
80 cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir} 80 cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}