summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric BENARD <eric@eukrea.com>2010-04-25 09:20:14 +0000
committerRoman I Khimov <khimov@altell.ru>2010-05-02 23:31:00 +0400
commitb2f6d8d0200974b8b98f1bb9b10d46fb06e14b15 (patch)
tree6561fb68cff5b3fae8e0ea006db2e40cfd0b9c06
parent60e0205577b66d09581d1e830db67fd1c9882b78 (diff)
kernel.class : fix for recent kernel on x86
- bitbake linux for a x86 machine fails with the following message : cp: target `.../image/kernel//include/asm-x86/' is not a directory so create $kerneldir/include/asm-x86 before trying to copy something in this directory. - make headers_install fails because of missing directories in include (tested with linux 2.6.32 and 2.6.33 on x86) and missing Kbuild Signed-off-by: Eric Benard <eric@eukrea.com> Acked-by: Roman I Khimov <khimov@altell.ru>
-rw-r--r--classes/kernel.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 7504c119ad..f27b24ebcc 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -142,6 +142,7 @@ kernel_do_install() {
# Check for arch/x86 on i386
elif [ -d arch/x86/include/asm/ ]; then
+ mkdir -p $kerneldir/include/asm-x86/
cp -fR arch/x86/include/asm/* $kerneldir/include/asm-x86/
install -d $kerneldir/arch/x86/include
cp -fR arch/x86/* $kerneldir/arch/x86/
@@ -155,12 +156,15 @@ kernel_do_install() {
mkdir -p $kerneldir/include/asm-generic
cp -fR include/asm-generic/* $kerneldir/include/asm-generic/
- for entry in drivers/crypto drivers/media include/generated include/linux include/net include/pcmcia include/media include/acpi include/sound include/video include/scsi include/trace; do
+ for entry in drivers/crypto drivers/media include/generated include/linux include/net include/pcmcia include/media include/acpi include/sound include/video include/scsi include/trace include/mtd include/rdma include/drm include/xen; do
if [ -d $entry ]; then
mkdir -p $kerneldir/$entry
cp -fR $entry/* $kerneldir/$entry/
fi
done
+ if [ -f include/Kbuild ]; then
+ cp -fR include/Kbuild $kerneldir/include
+ fi
if [ -d drivers/sound ]; then
# 2.4 alsa needs some headers from this directory