3 DEPENDS += "gperf-native"
5 # DEFAULT_PREFERENCE = "-1"
6 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/eglibc-svn"
7 PV = "2.10+svnr${SRCREV}"
10 SRC_URI = "svn://svn.eglibc.org;module=trunk \
11 file://eglibc-svn-arm-lowlevellock-include-tls.patch;patch=1 \
12 file://etc/ld.so.conf \
13 file://generate-supported.mk"
14 S = "${WORKDIR}/${EGLIBC_BRANCH}/libc"
15 B = "${WORKDIR}/build-${TARGET_SYS}"
17 PACKAGES_DYNAMIC = "libc6*"
18 RPROVIDES_${PN}-dev = "libc6-dev virtual-libc-dev"
19 PROVIDES_${PN}-dbg = "glibc-dbg"
21 # the -isystem in bitbake.conf screws up glibc do_stage
22 BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
23 TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${layout_includedir}"
25 GLIBC_ADDONS ?= "ports,nptl,libidn"
27 GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn_BD te_IN"
30 # For now, we will skip building of a gcc package if it is a uclibc one
31 # and our build is not a uclibc one, and we skip a glibc one if our build
34 # See the note in gcc/gcc_3.4.0.oe
37 python __anonymous () {
39 uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None)
41 raise bb.parse.SkipPackage("incompatible with target %s" %
42 bb.data.getVar('TARGET_OS', d, 1))
45 EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
46 --without-cvs --disable-profile --disable-debug --without-gd \
47 --enable-clocale=gnu \
48 --enable-add-ons=${GLIBC_ADDONS},ports \
49 --with-headers=${STAGING_INCDIR} \
51 ${GLIBC_EXTRA_OECONF}"
53 EXTRA_OECONF += "${@get_eglibc_fpu_setting(bb, d)}"
56 bb.build.exec_func('do_move_ports', d)
60 if test -d ${WORKDIR}/${EGLIBC_BRANCH}/ports ; then
62 mv ${WORKDIR}/${EGLIBC_BRANCH}/ports ${S}/
67 # override this function to avoid the autoconf/automake/aclocal/autoheader
69 # don't pass CPPFLAGS into configure, since it upsets the kernel-headers
70 # version check and doesn't really help with anything
71 if [ -z "`which rpcgen`" ]; then
72 echo "rpcgen not found. Install glibc-devel."
75 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
76 find ${S} -name "configure" | xargs touch
77 CPPFLAGS="" oe_runconf
80 rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \
81 yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \
82 rusers.x spray.x nfs_prot.x rquota.x key_prot.x"
85 # -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging
90 for r in ${rpcsvc}; do
91 h=`echo $r|sed -e's,\.x$,.h,'`
92 rpcgen -h $r -o $h || oewarn "unable to generate header for $r"
97 require eglibc-stage.inc
99 require eglibc-package.bbclass