x-load git: bump SRCREV
[openembedded.git] / recipes / eglibc / eglibc.inc
blobf0cfca876953758c745586a74f14d6c213861e04
1 DESCRIPTION = "Embedded GNU C Library"
2 HOMEPAGE = "http://www.eglibc.org/home"
3 SECTION = "libs"
4 PRIORITY = "required"
5 LICENSE = "LGPL"
6 INC_PR = "r21"
7 # nptl needs unwind support in gcc, which can't be built without glibc.
8 DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers"
9 #this leads to circular deps, so lets not add it yet
10 #RDEPENDS_ldd += " bash"
11 # nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
12 #RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
13 PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
14 PROVIDES += "virtual/libintl virtual/libiconv"
15 PACKAGES_DYNAMIC = "libc6*"
16 RPROVIDES_${PN}-dev = "libc6-dev virtual-libc-dev"
17 PROVIDES_${PN}-dbg = "glibc-dbg"
19 inherit autotools
20 require eglibc-options.inc
22 LEAD_SONAME = "libc.so"
24 GLIBC_EXTRA_OECONF ?= ""
25 INHIBIT_DEFAULT_DEPS = "1"
27 ARM_INSTRUCTION_SET = "arm"
28 # eglibc uses PARALLELMFLAGS variable to pass parallel build info so transfer
29 # PARALLEL_MAKE into PARALLELMFLAGS and empty out PARALLEL_MAKE
30 EXTRA_OEMAKE := "PARALLELMFLAGS="${PARALLEL_MAKE}""
31 PARALLEL_MAKE = ""
33 GLIBC_EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
35 do_unpack_append() {
36         bb.build.exec_func('do_move_ports', d)
39 do_move_ports() {
40         if test -d ${WORKDIR}/${EGLIBC_BRANCH}/ports ; then
41             rm -rf ${S}/ports
42             mv ${WORKDIR}/${EGLIBC_BRANCH}/ports ${S}/
43         fi
45 OE_FEATURES := "${@features_to_eglibc_settings(d)}"
46 do_configure_prepend() {
47         echo '${OE_FEATURES}' > ${B}/option-groups.config
50 # Work around issues with pstage package install order and intermediate steps
51 # in the toolchain build.
52 do_setscene[deptask] = "do_setscene"