From b6220af33a70d96345dea130005ce842eeadfdf5 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 30 Oct 2008 14:55:19 +0100 Subject: kernel bbclass: start adding support for >=2.6.27 where headers moved * still lack a symlink for mach/, dunno how to do that properly since the information is dynamically generated with makefiles --- classes/kernel.bbclass | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 266a89dd9a..742654e7c1 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -91,12 +91,15 @@ kernel_do_compile() { } kernel_do_compile[depends] = "${INITRAMFS_TASK}" - kernel_do_stage() { ASMDIR=`readlink include/asm` 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 + if [ -e arch/${ARCH}/include/asm/ ] ; then + cp -fR arch/${ARCH}/include/asm/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/ + fi rm -f $ASMDIR ${STAGING_KERNEL_DIR}/include/asm ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm -- cgit v1.2.3