grep -v $i ${WORKDIR}/SUPPORTED > ${WORKDIR}/SUPPORTED.tmp
mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED
done
+ # If indicated, only build a limited selection of locales
+ if [ "${LIMIT_BUILT_LOCALES}" != "${LIMIT_BUILT_LOCALES}" ]; then
+ for i in ${LIMIT_BUILT_LOCALES}; do
+ grep $i ${WORKDIR}/SUPPORTED > ${WORKDIR}/SUPPORTED.tmp
+ mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED
+ done
+ fi
rm -f ${D}/etc/rpc
}
--- /dev/null
+
+do_rig_locales() {
+ # If indicated, only build a limited selection of locales
+ if [ "x${LIMIT_BUILT_LOCALES}" != "${LIMIT_BUILT_LOCALES}" ]; then
+ INFILE="${S}/localedata/SUPPORTED"
+ OUTFILE="${S}/localedata/SUPPORTED.tmp"
+ head -n 3 $INFILE > $OUTFILE
+ for i in ${LIMIT_BUILT_LOCALES}; do
+ echo
+ grep $i $INFILE >> $OUTFILE
+ done
+ head --lines=-1 $OUTFILE > $INFILE
+ tail --lines=1 $OUTFILE | sed 's#\\##' >> $INFILE
+ fi
+}
+
+addtask rig_locales before do_compile after do_configure
GLIBC_BROKEN_LOCALES = "sid_ET tr_TR mn_MN"
+LIMIT_BUILT_LOCALES = "en_GB"
+
#
# For now, we will skip building of a gcc package if it is a uclibc one
# and our build is not a uclibc one, and we skip a glibc one if our build
}
include glibc-package.bbclass
+include glibc.inc