aboutsummaryrefslogtreecommitdiffstats
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.inc42
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 00000000000..ecaf593b22e
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc.inc
@@ -0,0 +1,42 @@
+DESCRIPTION = "GNU C Library"
+HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
+BUGTRACKER = "http://sources.redhat.com/bugzilla/"
+SECTION = "libs"
+PRIORITY = "required"
+LICENSE = "LGPLv2.1+ & GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \
+ file://elf/cache.c;beginline=1;endline=17;md5=926aac25497b1de7d630b4749005d208 \
+ file://COPYING.LIB;md5=bbb461211a33b134d42ed5ee802b37ff \
+ file://bits/types.h;beginline=1;endline=18;md5=267938e7c0538e76f734551ec6ea908d"
+# nptl needs unwind support in gcc, which can't be built without glibc.
+DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers"
+RDEPENDS_${PN}-dev = "linux-libc-headers-dev"
+#this leads to circular deps, so lets not add it yet
+#RDEPENDS_ldd += " bash"
+#RDEPENDS += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
+PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
+PROVIDES += "virtual/libintl virtual/libiconv"
+
+inherit autotools
+
+GLIBC_EXTRA_OECONF ?= ""
+INHIBIT_DEFAULT_DEPS = "1"
+
+do_rig_locales() {
+ # If indicated, only build a limited selection of locales
+ if [ "x${LIMIT_BUILT_LOCALES}" != "x" ]; 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
+
+ARM_INSTRUCTION_SET = "arm"