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