summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc-initial.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc-initial.inc')
-rw-r--r--meta/recipes-core/glibc/glibc-initial.inc67
1 files changed, 0 insertions, 67 deletions
diff --git a/meta/recipes-core/glibc/glibc-initial.inc b/meta/recipes-core/glibc/glibc-initial.inc
deleted file mode 100644
index 3745955f60..0000000000
--- a/meta/recipes-core/glibc/glibc-initial.inc
+++ /dev/null
@@ -1,67 +0,0 @@
1SECTION = "libs"
2DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers"
3PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
4FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-${PV}', '${FILE_DIRNAME}/glibc-2.4', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
5
6PACKAGES = ""
7PACKAGES_DYNAMIC = ""
8
9STAGINGCC = "gcc-cross-initial"
10STAGINGCC_virtclass-nativesdk = "gcc-crosssdk-initial"
11
12do_configure () {
13 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
14 chmod +x ${S}/configure
15 find ${S} -name "configure" | xargs touch
16 ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
17 --without-cvs --disable-sanity-checks \
18 --with-headers=${STAGING_DIR_TARGET}${includedir} \
19 --enable-hacker-mode
20 if grep -q GLIBC_2.3 ${S}/ChangeLog; then
21 # glibc-2.3.x passes cross options to $(CC) when generating errlist-compat.c, which fails without a real cross-compiler.
22 # Fortunately, we don't need errlist-compat.c, since we just need .h files,
23 # so work around this by creating a fake errlist-compat.c and satisfying its dependencies.
24 # Another workaround might be to tell configure to not use any cross options to $(CC).
25 # The real fix would be to get install-headers to not generate errlist-compat.c.
26 make sysdeps/gnu/errlist.c
27 mkdir -p stdio-common
28 touch stdio-common/errlist-compat.c
29 fi
30}
31
32do_compile () {
33 :
34}
35
36do_install () {
37 oe_runmake cross-compiling=yes install_root=${D} \
38 includedir='${includedir}' prefix='${prefix}' \
39 install-bootstrap-headers=yes install-headers
40
41 oe_runmake csu/subdir_lib
42 # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
43 # so do them by hand. We can tolerate an empty stubs.h for the moment.
44 # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html
45 mkdir -p ${D}${includedir}/gnu/
46 touch ${D}${includedir}/gnu/stubs.h
47 cp ${S}/include/features.h ${D}${includedir}/features.h
48
49 if [ -e ${B}/bits/stdio_lim.h ]; then
50 cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/
51 fi
52 mkdir -p ${D}${libdir}/
53 install -m 644 csu/crt[1in].o ${D}${libdir}
54 ${CC} -nostdlib -nostartfiles -shared -x c /dev/null \
55 -o ${D}${libdir}/libc.so
56
57 # add links to linux-libc-headers: gcc-{cross,crossdk}-intermediate need this.
58 for t in linux asm asm-generic; do
59 ln -s ${STAGING_DIR_TARGET}${includedir}/$t ${D}${includedir}/
60 done
61}
62
63do_siteconfig () {
64 :
65}
66
67do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}"