diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc.inc')
-rw-r--r-- | meta/recipes-core/glibc/glibc.inc | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc new file mode 100644 index 0000000000..ecaf593b22 --- /dev/null +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -0,0 +1,42 @@ | |||
1 | DESCRIPTION = "GNU C Library" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/libc/libc.html" | ||
3 | BUGTRACKER = "http://sources.redhat.com/bugzilla/" | ||
4 | SECTION = "libs" | ||
5 | PRIORITY = "required" | ||
6 | LICENSE = "LGPLv2.1+ & GPLv2+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \ | ||
8 | file://elf/cache.c;beginline=1;endline=17;md5=926aac25497b1de7d630b4749005d208 \ | ||
9 | file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \ | ||
10 | file://bits/types.h;beginline=1;endline=18;md5=267938e7c0538e76f734551ec6ea908d" | ||
11 | # nptl needs unwind support in gcc, which can't be built without glibc. | ||
12 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers" | ||
13 | RDEPENDS_${PN}-dev = "linux-libc-headers-dev" | ||
14 | #this leads to circular deps, so lets not add it yet | ||
15 | #RDEPENDS_ldd += " bash" | ||
16 | #RDEPENDS += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}" | ||
17 | PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" | ||
18 | PROVIDES += "virtual/libintl virtual/libiconv" | ||
19 | |||
20 | inherit autotools | ||
21 | |||
22 | GLIBC_EXTRA_OECONF ?= "" | ||
23 | INHIBIT_DEFAULT_DEPS = "1" | ||
24 | |||
25 | do_rig_locales() { | ||
26 | # If indicated, only build a limited selection of locales | ||
27 | if [ "x${LIMIT_BUILT_LOCALES}" != "x" ]; then | ||
28 | INFILE="${S}/localedata/SUPPORTED" | ||
29 | OUTFILE="${S}/localedata/SUPPORTED.tmp" | ||
30 | head -n 3 $INFILE > $OUTFILE | ||
31 | for i in ${LIMIT_BUILT_LOCALES}; do | ||
32 | echo | ||
33 | grep $i $INFILE >> $OUTFILE | ||
34 | done | ||
35 | head --lines=-1 $OUTFILE > $INFILE | ||
36 | tail --lines=1 $OUTFILE | sed 's#\\##' >> $INFILE | ||
37 | fi | ||
38 | } | ||
39 | |||
40 | addtask rig_locales before do_compile after do_configure | ||
41 | |||
42 | ARM_INSTRUCTION_SET = "arm" | ||