From b2f6d8d0200974b8b98f1bb9b10d46fb06e14b15 Mon Sep 17 00:00:00 2001 From: Eric BENARD Date: Sun, 25 Apr 2010 09:20:14 +0000 Subject: 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 Acked-by: Roman I Khimov --- classes/kernel.bbclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'classes/kernel.bbclass') 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 -- cgit v1.2.3