summaryrefslogtreecommitdiffstats
path: root/meta/packages/glibc/glibc-initial_csl-2005q3-2.bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-10-21 19:12:24 +0000
committerRichard Purdie <richard@openedhand.com>2007-10-21 19:12:24 +0000
commitc6c94fab5ef5fe3db448bfc8e1e1e56d628d14ec (patch)
tree0c0c3eb7701af7e67a510660ca356aa0081b6695 /meta/packages/glibc/glibc-initial_csl-2005q3-2.bb
parent6e60bdc61280cc458a75c62266d2aa8570a02061 (diff)
downloadpoky-c6c94fab5ef5fe3db448bfc8e1e1e56d628d14ec.tar.gz
glibc-initial: Factor code into common .inc file
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2941 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/glibc/glibc-initial_csl-2005q3-2.bb')
-rw-r--r--meta/packages/glibc/glibc-initial_csl-2005q3-2.bb46
1 files changed, 1 insertions, 45 deletions
diff --git a/meta/packages/glibc/glibc-initial_csl-2005q3-2.bb b/meta/packages/glibc/glibc-initial_csl-2005q3-2.bb
index 6fe67083ec..d3dc4b587a 100644
--- a/meta/packages/glibc/glibc-initial_csl-2005q3-2.bb
+++ b/meta/packages/glibc/glibc-initial_csl-2005q3-2.bb
@@ -1,47 +1,3 @@
1SECTION = "libs"
2require glibc_${PV}.bb 1require glibc_${PV}.bb
2require glibc-initial.inc
3 3
4DEPENDS = "linux-libc-headers"
5PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
6FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/glibc-2.4', '${FILE_DIRNAME}/glibc', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
7
8PACKAGES = ""
9PACKAGES_DYNAMIC = ""
10
11do_configure () {
12 sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure
13 chmod +x ${S}/configure
14 CC="${BUILD_CC}" CPP="${BUILD_CPP}" LD="${BUILD_LD}" ${S}/configure --host=${TARGET_SYS} --build=${BUILD_SYS} \
15 --without-cvs --disable-sanity-checks \
16 --with-headers=${CROSS_DIR}/${TARGET_SYS}/include \
17 --enable-hacker-mode
18 if grep -q GLIBC_2.3 ${S}/ChangeLog; then
19 # glibc-2.3.x passes cross options to $(CC) when generating errlist-compat.c, which fails without a real cross-compiler.
20 # Fortunately, we don't need errlist-compat.c, since we just need .h files,
21 # so work around this by creating a fake errlist-compat.c and satisfying its dependencies.
22 # Another workaround might be to tell configure to not use any cross options to $(CC).
23 # The real fix would be to get install-headers to not generate errlist-compat.c.
24 make sysdeps/gnu/errlist.c
25 mkdir -p stdio-common
26 touch stdio-common/errlist-compat.c
27 fi
28}
29
30do_compile () {
31 :
32}
33
34do_stage () {
35 oe_runmake cross-compiling=yes install_root=${STAGING_DIR}/${HOST_SYS} includedir=/include prefix="" install-headers
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 ${STAGING_DIR}/${HOST_SYS}/include/gnu
41 touch ${STAGING_DIR}/${HOST_SYS}/include/gnu/stubs.h
42 cp ${S}/include/features.h ${STAGING_DIR}/${HOST_SYS}/include/features.h
43}
44
45do_install () {
46 :
47}