summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 696318488..966b9940c 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -126,8 +126,9 @@ 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/
+ if [ -e include/asm ] ; then
+ cp -fR arch/x86/include/asm/* $kerneldir/include/$ASMDIR/
+ fi
install -d $kerneldir/arch/x86/include
cp -fR arch/x86/* $kerneldir/arch/x86/
fi