diff options
author | Koen Kooi <koen@openembedded.org> | 2008-10-30 14:55:19 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-10-30 14:55:19 +0100 |
commit | b6220af33a70d96345dea130005ce842eeadfdf5 (patch) | |
tree | 2c72ffcde46a61f4a4b02a10c182e9cb11515a30 /classes/kernel.bbclass | |
parent | 26f6477a2d5ecb7bc4eb984a334d17e2c833b875 (diff) |
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
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r-- | classes/kernel.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
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 |