summaryrefslogtreecommitdiff
path: root/classes/kernel.bbclass
diff options
context:
space:
mode:
authorMichael Smith <msmith@cbnco.com>2009-05-06 03:38:35 +0000
committerMichael Smith <msmith@cbnco.com>2009-08-22 12:09:47 -0400
commitafe0641baf060813e57e880c3a3f4b202a0dfefe (patch)
treef6ea05d6eb0c7dd3be68fdae5c176c15d70f8a1a /classes/kernel.bbclass
parent44b1c634f652ceb4bd767642698f020bf1a9aca7 (diff)
kernel.bbclass: stage more include files for x86 in 2.6.27+
Some packages include <linux/types.h>, which requires <asm/types.h>. Supplement b6220af33a70d96345dea130005ce842eeadfdf5 to copy files from arch/x86/include/asm to include/asm-x86. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r--classes/kernel.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 3ee7f53a29..d084cefee8 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -103,8 +103,15 @@ kernel_do_stage() {
cp -fR arch/${ARCH}/include/asm/* ${STAGING_KERNEL_DIR}/include/$ASMDIR/
install -d ${STAGING_KERNEL_DIR}/arch/${ARCH}/include
cp -fR arch/${ARCH}/* ${STAGING_KERNEL_DIR}/arch/${ARCH}/
+
+ # Check for arch/x86 on i386
+ elif [ -d arch/x86/include/asm/ ]; then
+ cp -fR arch/x86/include/asm/* ${STAGING_KERNEL_DIR}/include/asm-x86/
+ install -d ${STAGING_KERNEL_DIR}/arch/x86/include
+ cp -fR arch/x86/* ${STAGING_KERNEL_DIR}/arch/x86/
fi
- rm -f $ASMDIR ${STAGING_KERNEL_DIR}/include/asm
+
+ rm -f ${STAGING_KERNEL_DIR}/include/asm
ln -sf $ASMDIR ${STAGING_KERNEL_DIR}/include/asm
mkdir -p ${STAGING_KERNEL_DIR}/include/asm-generic