summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc.inc')
-rw-r--r--meta/recipes-core/glibc/glibc.inc60
1 files changed, 0 insertions, 60 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc
deleted file mode 100644
index 57d693c803..0000000000
--- a/meta/recipes-core/glibc/glibc.inc
+++ /dev/null
@@ -1,60 +0,0 @@
1DESCRIPTION = "GNU C Library"
2HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
3BUGTRACKER = "http://sources.redhat.com/bugzilla/"
4SECTION = "libs"
5LICENSE = "LGPLv2.1+ & GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \
7 file://elf/cache.c;beginline=1;endline=17;md5=926aac25497b1de7d630b4749005d208 \
8 file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \
9 file://bits/types.h;beginline=1;endline=18;md5=267938e7c0538e76f734551ec6ea908d"
10# nptl needs unwind support in gcc, which can't be built without glibc.
11DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers"
12RDEPENDS_${PN}-dev = "linux-libc-headers-dev"
13#this leads to circular deps, so lets not add it yet
14#RDEPENDS_ldd += " bash"
15#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
16PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
17PROVIDES += "virtual/libintl virtual/libiconv"
18
19STAGINGCC = "gcc-cross-intermediate"
20STAGINGCC_virtclass-nativesdk = "gcc-crosssdk-intermediate"
21PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:"
22
23TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}"
24
25# siteconfig.bbclass runs configure which needs a working compiler
26# For the compiler to work we need a working libc yet libc isn't
27# in the sysroots directory at this point. This means the libc.so
28# linker script won't work as the --sysroot setting isn't correct.
29# Here we create a hacked up libc linker script and pass in the right
30# flags to let configure work. Ugly.
31EXTRASITECONFIG = "CFLAGS='${CFLAGS} -Wl,-L${WORKDIR}/site_config_libc -L${WORKDIR}/site_config_libc -L${SYSROOT_DESTDIR}${libdir} -L${SYSROOT_DESTDIR}${base_libdir} -Wl,-L${SYSROOT_DESTDIR}${libdir} -Wl,-L${SYSROOT_DESTDIR}${base_libdir}'"
32siteconfig_do_siteconfig_gencache_prepend = " \
33 mkdir -p ${WORKDIR}/site_config_libc; \
34 cp ${SYSROOT_DESTDIR}${libdir}/libc.so ${WORKDIR}/site_config_libc; \
35 sed -i -e 's# ${base_libdir}# ${SYSROOT_DESTDIR}${base_libdir}#g' -e 's# ${libdir}# ${SYSROOT_DESTDIR}${libdir}#g' ${WORKDIR}/site_config_libc/libc.so; \
36"
37
38inherit autotools
39
40GLIBC_EXTRA_OECONF ?= ""
41INHIBIT_DEFAULT_DEPS = "1"
42
43do_rig_locales() {
44 # If indicated, only build a limited selection of locales
45 if [ "x${LIMIT_BUILT_LOCALES}" != "x" ]; then
46 INFILE="${S}/localedata/SUPPORTED"
47 OUTFILE="${S}/localedata/SUPPORTED.tmp"
48 head -n 3 $INFILE > $OUTFILE
49 for i in ${LIMIT_BUILT_LOCALES}; do
50 echo
51 grep $i $INFILE >> $OUTFILE || true
52 done
53 head --lines=-1 $OUTFILE > $INFILE
54 tail --lines=1 $OUTFILE | sed 's#\\##' >> $INFILE
55 fi
56}
57
58addtask rig_locales before do_compile after do_configure
59
60ARM_INSTRUCTION_SET = "arm"