]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel.bbclass: match x86 header installation to other architectures
authorJoshua Lock <josh@linux.intel.com>
Thu, 20 May 2010 11:58:25 +0000 (12:58 +0100)
committerJoshua Lock <josh@linux.intel.com>
Thu, 20 May 2010 11:58:25 +0000 (12:58 +0100)
The header installation for x86 was slightly different as to that employed
for other architectures, change them to match for consistency.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/kernel.bbclass

index 69631848816e73fde2650fe8192867ebea2c054a..966b9940c358218437c94151b0a37cc5f736008e 100644 (file)
@@ -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