summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc-initial.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2014-08-28 06:00:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-01 18:02:21 +0100
commit54a3375a1084f02ebd95886739e951228e945c57 (patch)
treefe139449256b0ed85504b896a9782bccd8a9d3a1 /meta/recipes-core/glibc/glibc-initial.inc
parent954e45bc7464573ed4776dbcd72eb76d4fca0b3d (diff)
downloadpoky-54a3375a1084f02ebd95886739e951228e945c57.tar.gz
glibc: Migrate eglibc 2.19 -> glibc 2.20
- This is a big swoop change where we switch to using glibc - option-groups are forward ported - cross-localedef is extracted out from eglibc and hosted at github.com/kraj/localedef, its used for cross-localedef recipe - Other non ported patches from eglibc are forward ported ppc8xx cache line workaround SH fpcr values dynamic resolver installing PIC archives is there but is not applied libc header bootstrap - Delete eglibc recipes we moved back to using glibc now - Fix ppc/e500 build - Fix crypt module build when options are used - Fix fnmatch build when options OPTION_EGLIBC_LOCALE_CODE is unset HAVE_MBSTATE_T and HAVE_MBSRTOWCS should be defined conditionally based upon OPTION_EGLIBC_LOCALE_CODE being set/unset - Move the ports/ patches to relevant files now that ports is gone (From OE-Core rev: 1027c535ea753e63d9ffe469a423e04467cf8940) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc-initial.inc')
-rw-r--r--meta/recipes-core/glibc/glibc-initial.inc78
1 files changed, 78 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc
new file mode 100644
index 0000000000..7db3deac1b
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc-initial.inc
@@ -0,0 +1,78 @@
1DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial libgcc-initial"
2PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
3
4PACKAGES = ""
5PACKAGES_DYNAMIC = ""
6
7STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}"
8STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}"
9TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}"
10
11do_configure () {
12 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
13 chmod +x ${S}/configure
14 (cd ${S} && gnu-configize) || die "failure in running gnu-configize"
15 find ${S} -name "configure" | xargs touch
16 ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
17 --prefix=/usr \
18 --without-cvs --disable-sanity-checks \
19 --with-headers=${STAGING_DIR_TARGET}${includedir} \
20 --with-kconfig=${STAGING_BINDIR_NATIVE} \
21 --enable-hacker-mode --enable-addons
22}
23
24do_compile () {
25 :
26}
27
28do_install () {
29 oe_runmake cross-compiling=yes install_root=${D} \
30 includedir='${includedir}' prefix='${prefix}' \
31 install-bootstrap-headers=yes install-headers
32
33 oe_runmake csu/subdir_lib
34 mkdir -p ${D}${libdir}/
35 install -m 644 csu/crt[1in].o ${D}${libdir}
36
37 # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
38 # so do them by hand. We can tolerate an empty stubs.h for the moment.
39 # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html
40 mkdir -p ${D}${includedir}/gnu/
41 touch ${D}${includedir}/gnu/stubs.h
42 cp ${S}/include/features.h ${D}${includedir}/features.h
43
44 if [ -e ${B}/bits/stdio_lim.h ]; then
45 cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/
46 fi
47 # add links to linux-libc-headers: final glibc build need this.
48 for t in linux asm asm-generic; do
49 ln -s ${STAGING_DIR_TARGET}${includedir}/$t ${D}${includedir}/
50 done
51}
52
53do_install_locale() {
54 :
55}
56
57do_siteconfig () {
58 :
59}
60
61SSTATEPOSTINSTFUNCS += "glibcinitial_sstate_postinst"
62glibcinitial_sstate_postinst() {
63 if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ]
64 then
65 # Recreate the symlinks to ensure they point to the correct location
66 for t in linux asm asm-generic; do
67 rm -f ${STAGING_DIR_TCBOOTSTRAP}${includedir}/$t
68 ln -s ${STAGING_DIR_TARGET}${includedir}/$t ${STAGING_DIR_TCBOOTSTRAP}${includedir}/
69 done
70 fi
71}
72
73do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}/"
74
75# We don't install any scripts so there is nothing to evacuate
76do_evacuate_scripts () {
77 :
78}