summaryrefslogtreecommitdiff
path: root/meta/packages/glibc/glibc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/glibc/glibc.inc')
-rw-r--r--meta/packages/glibc/glibc.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/packages/glibc/glibc.inc b/meta/packages/glibc/glibc.inc
new file mode 100644
index 0000000000..4459f76a87
--- /dev/null
+++ b/meta/packages/glibc/glibc.inc
@@ -0,0 +1,17 @@
+
+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