summaryrefslogtreecommitdiffstats
path: root/meta/packages/glibc/glibc.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-28 17:48:27 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-28 17:48:27 +0000
commit5599ea7fb19258cc7695c9a38219c75338578759 (patch)
tree721b5eed1be9e3f6520f90e00875730c8410e6d2 /meta/packages/glibc/glibc.inc
parentc5b80f33c555d4fd0576f31bafad022ceba508ae (diff)
downloadpoky-5599ea7fb19258cc7695c9a38219c75338578759.tar.gz
glibc: Limit the locales that are generated under qemu. Note this patch totally trashes the other locales and would therefore need refinement for OE.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@583 311d38ba-8fff-0310-9ca6-ca027cbcb966
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 @@
1
2do_rig_locales() {
3 # If indicated, only build a limited selection of locales
4 if [ "x${LIMIT_BUILT_LOCALES}" != "${LIMIT_BUILT_LOCALES}" ]; then
5 INFILE="${S}/localedata/SUPPORTED"
6 OUTFILE="${S}/localedata/SUPPORTED.tmp"
7 head -n 3 $INFILE > $OUTFILE
8 for i in ${LIMIT_BUILT_LOCALES}; do
9 echo
10 grep $i $INFILE >> $OUTFILE
11 done
12 head --lines=-1 $OUTFILE > $INFILE
13 tail --lines=1 $OUTFILE | sed 's#\\##' >> $INFILE
14 fi
15}
16
17addtask rig_locales before do_compile after do_configure