diff options
Diffstat (limited to 'meta/recipes-core/glibc/glibc_2.20.bb')
-rw-r--r-- | meta/recipes-core/glibc/glibc_2.20.bb | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc_2.20.bb b/meta/recipes-core/glibc/glibc_2.20.bb new file mode 100644 index 0000000000..c6ef34afb3 --- /dev/null +++ b/meta/recipes-core/glibc/glibc_2.20.bb | |||
@@ -0,0 +1,154 @@ | |||
1 | require glibc.inc | ||
2 | |||
3 | DEPENDS += "gperf-native kconfig-frontends-native" | ||
4 | |||
5 | PV = "2.20" | ||
6 | |||
7 | SRCREV = "529bf51595fffbe80023e7d895b671391991bb1b" | ||
8 | |||
9 | SRC_URI = "git://sourceware.org/git/glibc.git;branch=master \ | ||
10 | file://IO-acquire-lock-fix.patch \ | ||
11 | file://mips-rld-map-check.patch \ | ||
12 | file://etc/ld.so.conf \ | ||
13 | file://generate-supported.mk \ | ||
14 | file://glibc.fix_sqrt2.patch \ | ||
15 | file://multilib_readlib.patch \ | ||
16 | file://ppc-sqrt_finite.patch \ | ||
17 | file://ppc_slow_ieee754_sqrt.patch \ | ||
18 | file://add_resource_h_to_wait_h.patch \ | ||
19 | file://fsl-ppc-no-fsqrt.patch \ | ||
20 | file://0001-R_ARM_TLS_DTPOFF32.patch \ | ||
21 | file://0001-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \ | ||
22 | file://fix-tibetian-locales.patch \ | ||
23 | file://ppce6500-32b_slow_ieee754_sqrt.patch \ | ||
24 | file://grok_gold.patch \ | ||
25 | file://fix_am_rootsbindir.patch \ | ||
26 | file://0001-Define-__GI_fegetenv-for-e500-libm.patch \ | ||
27 | ${EGLIBCPATCHES} \ | ||
28 | " | ||
29 | EGLIBCPATCHES = "\ | ||
30 | file://timezone-re-written-tzselect-as-posix-sh.patch \ | ||
31 | file://eglibc.patch \ | ||
32 | file://option-groups.patch \ | ||
33 | file://GLRO_dl_debug_mask.patch \ | ||
34 | file://eglibc-header-bootstrap.patch \ | ||
35 | file://eglibc-resolv-dynamic.patch \ | ||
36 | file://eglibc-ppc8xx-cache-line-workaround.patch \ | ||
37 | file://eglibc-sh4-fpscr_values.patch \ | ||
38 | file://eglibc-use-option-groups.patch \ | ||
39 | " | ||
40 | # file://eglibc-install-pic-archives.patch \ | ||
41 | # file://initgroups_keys.patch \ | ||
42 | # | ||
43 | |||
44 | LIC_FILES_CHKSUM = "file://LICENSES;md5=e9a558e243b36d3209f380deb394b213 \ | ||
45 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
46 | file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ | ||
47 | file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" | ||
48 | |||
49 | SRC_URI_append_class-nativesdk = " file://ld-search-order.patch \ | ||
50 | file://relocatable_sdk.patch \ | ||
51 | file://relocatable_sdk_fix_openpath.patch \ | ||
52 | " | ||
53 | S = "${WORKDIR}/git" | ||
54 | B = "${WORKDIR}/build-${TARGET_SYS}" | ||
55 | |||
56 | PACKAGES_DYNAMIC = "" | ||
57 | |||
58 | # the -isystem in bitbake.conf screws up glibc do_stage | ||
59 | BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}" | ||
60 | TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}" | ||
61 | |||
62 | GLIBC_BROKEN_LOCALES = " _ER _ET so_ET yn_ER sid_ET tr_TR mn_MN gez_ET gez_ER bn_BD te_IN es_CR.ISO-8859-1" | ||
63 | |||
64 | # | ||
65 | # For now, we will skip building of a gcc package if it is a uclibc one | ||
66 | # and our build is not a uclibc one, and we skip a glibc one if our build | ||
67 | # is a uclibc build. | ||
68 | # | ||
69 | # See the note in gcc/gcc_3.4.0.oe | ||
70 | # | ||
71 | |||
72 | python __anonymous () { | ||
73 | import re | ||
74 | uc_os = (re.match('.*uclibc$', d.getVar('TARGET_OS', True)) != None) | ||
75 | if uc_os: | ||
76 | raise bb.parse.SkipPackage("incompatible with target %s" % | ||
77 | d.getVar('TARGET_OS', True)) | ||
78 | } | ||
79 | |||
80 | EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ | ||
81 | --without-cvs --disable-profile \ | ||
82 | --disable-debug --without-gd \ | ||
83 | --enable-clocale=gnu \ | ||
84 | --enable-add-ons \ | ||
85 | --with-headers=${STAGING_INCDIR} \ | ||
86 | --without-selinux \ | ||
87 | --enable-obsolete-rpc \ | ||
88 | --with-kconfig=${STAGING_BINDIR_NATIVE} \ | ||
89 | ${GLIBC_EXTRA_OECONF}" | ||
90 | |||
91 | EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}" | ||
92 | |||
93 | do_patch_append() { | ||
94 | bb.build.exec_func('do_fix_readlib_c', d) | ||
95 | } | ||
96 | |||
97 | # for mips glibc now builds syscall tables for all abi's | ||
98 | # so we make sure that we choose right march option which is | ||
99 | # compatible with o32,n32 and n64 abi's | ||
100 | # e.g. -march=mips32 is not compatible with n32 and n64 therefore | ||
101 | # we filter it out in such case -march=from-abi which will be | ||
102 | # mips1 when using o32 and mips3 when using n32/n64 | ||
103 | |||
104 | TUNE_CCARGS_mips := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}" | ||
105 | TUNE_CCARGS_mipsel := "${@oe_filter_out('-march=mips32', '${TUNE_CCARGS}', d)}" | ||
106 | |||
107 | do_fix_readlib_c () { | ||
108 | sed -i -e 's#OECORE_KNOWN_INTERPRETER_NAMES#${EGLIBC_KNOWN_INTERPRETER_NAMES}#' ${S}/elf/readlib.c | ||
109 | } | ||
110 | |||
111 | do_configure () { | ||
112 | # override this function to avoid the autoconf/automake/aclocal/autoheader | ||
113 | # calls for now | ||
114 | # don't pass CPPFLAGS into configure, since it upsets the kernel-headers | ||
115 | # version check and doesn't really help with anything | ||
116 | if [ -z "`which rpcgen`" ]; then | ||
117 | echo "rpcgen not found. Install glibc-devel." | ||
118 | exit 1 | ||
119 | fi | ||
120 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" | ||
121 | find ${S} -name "configure" | xargs touch | ||
122 | CPPFLAGS="" oe_runconf | ||
123 | } | ||
124 | |||
125 | rpcsvc = "bootparam_prot.x nlm_prot.x rstat.x \ | ||
126 | yppasswd.x klm_prot.x rex.x sm_inter.x mount.x \ | ||
127 | rusers.x spray.x nfs_prot.x rquota.x key_prot.x" | ||
128 | |||
129 | do_compile () { | ||
130 | # -Wl,-rpath-link <staging>/lib in LDFLAGS can cause breakage if another glibc is in staging | ||
131 | unset LDFLAGS | ||
132 | base_do_compile | ||
133 | ( | ||
134 | cd ${S}/sunrpc/rpcsvc | ||
135 | for r in ${rpcsvc}; do | ||
136 | h=`echo $r|sed -e's,\.x$,.h,'` | ||
137 | rpcgen -h $r -o $h || bbwarn "unable to generate header for $r" | ||
138 | done | ||
139 | ) | ||
140 | echo "Adjust ldd script" | ||
141 | if [ -n "${RTLDLIST}" ] | ||
142 | then | ||
143 | prevrtld=`cat ${B}/elf/ldd | grep "^RTLDLIST=" | sed 's#^RTLDLIST="\?\([^"]*\)"\?$#\1#'` | ||
144 | if [ "${prevrtld}" != "${RTLDLIST}" ] | ||
145 | then | ||
146 | sed -i ${B}/elf/ldd -e "s#^RTLDLIST=.*\$#RTLDLIST=\"${prevrtld} ${RTLDLIST}\"#" | ||
147 | fi | ||
148 | fi | ||
149 | |||
150 | } | ||
151 | |||
152 | require glibc-package.inc | ||
153 | |||
154 | BBCLASSEXTEND = "nativesdk" | ||