Merge bk://openembedded@openembedded.bkbits.net/packages
authorHolger Freyther <zecke@selfish.org>
Wed, 13 Oct 2004 21:33:59 +0000 (21:33 +0000)
committerHolger Freyther <zecke@selfish.org>
Wed, 13 Oct 2004 21:33:59 +0000 (21:33 +0000)
into handhelds.org:/home/ich/programming/oe/oe-packages-exported

2004/10/13 23:25:01+02:00 handhelds.org!zecke
Merge bk://openembedded@openembedded.bkbits.net/packages
into handhelds.org:/home/ich/programming/oe/oe-packages-exported

2004/10/13 23:24:44+02:00 handhelds.org!zecke
Install arch/${ARCH}/Makefile to fix compilation of hostap modules that try to
include kernel Makefile.

At least the 2.4.17er beagle kernels toplevel kernel Makefile includes
arch/arm/Makefile so it is better to be installed.

BKrev: 416d9f47sNTDuVC9wNMQUdmWHKG7BA

classes/kernel.oeclass

index 53482f3..1623605 100644 (file)
@@ -68,10 +68,11 @@ kernel_do_stage() {
        echo "${KERNEL_LDSUFFIX}" >${STAGING_KERNEL_DIR}/kernel-ldsuffix
        [ -e Rules.make ] && install -m 0644 Rules.make ${STAGING_KERNEL_DIR}/
        [ -e Makefile ] && install -m 0644 Makefile ${STAGING_KERNEL_DIR}/
-       # Makefile includes arch/mips/Makefile on mips
-       if [ "${ARCH}" = "mips" ]; then
-               install -d ${STAGING_KERNEL_DIR}/arch/mips
-               install -m 0644 arch/mips/Makefile ${STAGING_KERNEL_DIR}/arch/mips
+       
+       # Check if arch/${ARCH}/Makefile exists and install it
+       if [ -e arch/${ARCH}/Makefile ]; then
+               install -d ${STAGING_KERNEL_DIR}/arch/${ARCH}
+               install -m 0644 arch/${ARCH}/Makefile ${STAGING_KERNEL_DIR}/arch/${ARCH}
        fi
        cp -fR scripts ${STAGING_KERNEL_DIR}/
        cp -fR include/config* ${STAGING_KERNEL_DIR}/include/