classes/kernel.bbclass: fix staging for x86 on kernels >= 2.6.24
authorJeremy Laine <jeremy.laine@m4x.org>
Tue, 19 Feb 2008 09:26:36 +0000 (09:26 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Tue, 19 Feb 2008 09:26:36 +0000 (09:26 +0000)
classes/kernel.bbclass

index 6c12004..1e32532 100644 (file)
@@ -128,6 +128,10 @@ kernel_do_stage() {
        if [ -e arch/${ARCH}/Makefile ]; then
                install -d ${STAGING_KERNEL_DIR}/arch/${ARCH}
                install -m 0644 arch/${ARCH}/Makefile* ${STAGING_KERNEL_DIR}/arch/${ARCH}
+       # Otherwise check arch/x86/Makefile for i386 and x86_64 on kernels >= 2.6.24
+       elif [ -e arch/x86/Makefile ]; then
+               install -d ${STAGING_KERNEL_DIR}/arch/x86
+               install -m 0644 arch/x86/Makefile* ${STAGING_KERNEL_DIR}/arch/x86
        fi
        cp -fR include/config* ${STAGING_KERNEL_DIR}/include/   
        install -m 0644 ${KERNEL_OUTPUT} ${STAGING_KERNEL_DIR}/${KERNEL_IMAGETYPE}