aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-06-09 14:27:13 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-09 14:27:13 +0100
commit61a730184b25b2e3b33578aff06aba4efa77e779 (patch)
tree6e1f10910f6d03801a80c25168e6802940c35e45
parentf38160b36756dc2833da65802b24a47a631b7f71 (diff)
downloadopenembedded-core-contrib-61a730184b25b2e3b33578aff06aba4efa77e779.tar.gz
openembedded-core-contrib-61a730184b25b2e3b33578aff06aba4efa77e779.tar.bz2
openembedded-core-contrib-61a730184b25b2e3b33578aff06aba4efa77e779.zip
kernel.bbclass: Drop code which is duplicated later in the function, fixing older kernel builds
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--meta/classes/kernel.bbclass14
1 files changed, 6 insertions, 8 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index b8bff3e565..eae5c65d1d 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -118,17 +118,15 @@ kernel_do_install() {
# Take care of arch specific headers
# Kernel 2.6.27 moved headers from includes/asm-${ARCH} to arch/${ARCH}/include/asm
if [ -e arch/${ARCH}/include/asm/ ] ; then
- if [ -e include/asm ] ; then
- cp -fR arch/${ARCH}/include/asm/* $kerneldir/include/asm/
- fi
- install -d $kerneldir/arch/${ARCH}/include
- cp -fR arch/${ARCH}/* $kerneldir/arch/${ARCH}/
+ install -d $kerneldir/arch/${ARCH}/
+ cp -fR arch/${ARCH}/* $kerneldir/arch/${ARCH}/
# Check for arch/x86 on i386
elif [ -d arch/x86/include/asm/ ]; then
- if [ -e include/asm ] ; then
- cp -fR arch/x86/include/asm/* $kerneldir/include/asm/
- fi
+ if [ -e include/asm ] ; then
+ install -d $kerneldir/include/asm/
+ cp -fR arch/x86/include/asm/* $kerneldir/include/asm/
+ fi
install -d $kerneldir/arch/x86/include
cp -fR arch/x86/* $kerneldir/arch/x86/
fi