summaryrefslogtreecommitdiff
path: root/packages/glibc/glibc-intermediate_2.4.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-03-18 15:48:38 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-03-18 15:48:38 +0000
commite218e18a0e5256c0a3bc63246088c5e29772f320 (patch)
tree41adc4e4657484379bbd2495d0a4c618840f783a /packages/glibc/glibc-intermediate_2.4.bb
parent35e4bc9e5ca3775e96260e1700ebde7b89912a89 (diff)
glibc,glibc-intermediate 2.4: fixups for EABI build:
* Stage the eabi kernel headers to fix problems with gcc-cross * don't depend on linux-libc-headers since we use our own headers now
Diffstat (limited to 'packages/glibc/glibc-intermediate_2.4.bb')
-rw-r--r--packages/glibc/glibc-intermediate_2.4.bb20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/glibc/glibc-intermediate_2.4.bb b/packages/glibc/glibc-intermediate_2.4.bb
index ce3d20b2fd..d416cd0d30 100644
--- a/packages/glibc/glibc-intermediate_2.4.bb
+++ b/packages/glibc/glibc-intermediate_2.4.bb
@@ -7,6 +7,26 @@ do_install () {
:
}
+
+#glibc 2.4 ships with it's own copy of linux headers, so we have to make them available
+do_stage_prepend () {
+ install -d ${STAGING_INCDIR}
+ rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm
+ #fix up some wrong symlinking
+ rm -rf ${WORKDIR}/linux-libc-headers-${LIBC_HEADER_VERSION}/include/asm-${TARGET_ARCH}/asm-${TARGET_ARCH}
+ #copy the bits into place
+ cp -pfLR ${WORKDIR}/linux-libc-headers-${LIBC_HEADER_VERSION}/include/linux ${STAGING_INCDIR}/
+ cp -pfLR ${WORKDIR}/linux-libc-headers-${LIBC_HEADER_VERSION}/include/asm-* ${STAGING_INCDIR}/
+ ln -sf ${STAGING_INCDIR}/asm-${TARGET_ARCH} ${STAGING_INCDIR}/asm
+
+ install -d ${CROSS_DIR}/${TARGET_SYS}/include
+ rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/linux
+ rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/asm
+ cp -pfLR ${WORKDIR}/linux-libc-headers-${LIBC_HEADER_VERSION}/include/linux ${CROSS_DIR}/${TARGET_SYS}/include/
+ cp -pfLR ${WORKDIR}/linux-libc-headers-${LIBC_HEADER_VERSION}/include/asm-* ${CROSS_DIR}/${TARGET_SYS}/include/
+ ln -sf ${CROSS_DIR}/${TARGET_SYS}/include/asm-${TARGET_ARCH} ${CROSS_DIR}/${TARGET_SYS}/include/asm
+}
+
PACKAGES = ""
PROVIDES = "virtual/${TARGET_PREFIX}libc-for-gcc"
DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial"