summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-11-15 13:16:34 +0100
committerKoen Kooi <koen@openembedded.org>2008-11-15 13:16:34 +0100
commit35140731e1fa6fb6380c079b14549b1e221a12a4 (patch)
tree608dbb67bbf53b11d7526635014ad28f24082e80
parenta1553c8bf673e161ff4f49bb58083f4c3f692acf (diff)
kernel.bbclass: stage more headers for >=2.6.27 kernels
-rw-r--r--classes/kernel.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 742654e7c1..a6db6815ce 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -96,9 +96,11 @@ kernel_do_stage() {
mkdir -p ${STAGING_KERNEL_DIR}/include/$ASMDIR
cp -fR include/$ASMDIR/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/
- # Kernel 2.6.27 moved headers from includes/asm-${ARCH} to arch/${ARCH/include/asm
+ # Kernel 2.6.27 moved headers from includes/asm-${ARCH} to arch/${ARCH}/include/asm
if [ -e arch/${ARCH}/include/asm/ ] ; then
cp -fR arch/${ARCH}/include/asm/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/
+ install -d ${STAGING_KERNEL_DIR}/arch/${ARCH}/include
+ cp -fR arch/${ARCH}/include/* ${STAGING_KERNEL_DIR}/arch/${ARCH}/include/
fi
rm -f $ASMDIR ${STAGING_KERNEL_DIR}/include/asm
ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm