]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: Drop code which is duplicated later in the function, fixing older...
authorRichard Purdie <rpurdie@linux.intel.com>
Wed, 9 Jun 2010 13:27:13 +0000 (14:27 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 9 Jun 2010 13:27:13 +0000 (14:27 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/kernel.bbclass

index b8bff3e5654e928654e4d65de47aa6dbb5ad687d..eae5c65d1dcfe11ca6aa9e1a17dcb488e7e20552 100644 (file)
@@ -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