Skip to contentSkip to conversation

kernel.bbclass : fix install for x86

PATCH In review Eric Benard 1 participant 2 messages Apr 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel.bbclass : fix install for 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.

---
 classes/kernel.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
classes/kernel.bbclass +1 -0
index 7504c11..498f4bf 100644
@@ -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/
Signature · 1 line
1.6.3.3
#1 lore raw
Quoted 6 lines · Eric Benard

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.

forget it, this is not the right fix.

Eric