[oe] [PATCH v2] kernel.class : fix for recent kernel on x86
Eric Benard
eric at eukrea.com
Sun Apr 25 19:20:14 UTC 2010
- 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 at eukrea.com>
---
change since v1 : also install include/Kbuild as it's necessary for make headers_install
classes/kernel.bbclass | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 7504c11..f27b24e 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
--
1.6.3.3
More information about the Openembedded-devel
mailing list