summaryrefslogtreecommitdiff
path: root/classes/kernel.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-04-17 13:58:19 +0200
committerKoen Kooi <koen@openembedded.org>2010-04-17 13:58:53 +0200
commit0fb52aef77c21a68de87cfc922e2cd6a265ebf25 (patch)
tree8f58de16dee27ca63fbe9f791e58d0f1f41b6c66 /classes/kernel.bbclass
parent597e86c28ebd92f673d31c627ca54ceecf4f07a5 (diff)
kernel.bbclass: fix ASMDIR regressions
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r--classes/kernel.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 20403eaba8..7504c119ad 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -132,10 +132,11 @@ kernel_do_install() {
cp -fR include/$ASMDIR/* $kerneldir/include/$ASMDIR/
fi
- cp -fR include/$ASMDIR/* $kerneldir/include/$ASMDIR/
# Kernel 2.6.27 moved headers from includes/asm-${ARCH} to arch/${ARCH}/include/asm
if [ -e arch/${ARCH}/include/asm/ ] ; then
- cp -fR arch/${ARCH}/include/asm/* $kerneldir/include/$ASMDIR/
+ if [ -e include/asm ] ; then
+ cp -fR arch/${ARCH}/include/asm/* $kerneldir/include/$ASMDIR/
+ fi
install -d $kerneldir/arch/${ARCH}/include
cp -fR arch/${ARCH}/* $kerneldir/arch/${ARCH}/