diff options
Diffstat (limited to 'classes/kernel.oeclass')
-rw-r--r-- | classes/kernel.oeclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass index 53482f3213..16236055d6 100644 --- a/classes/kernel.oeclass +++ b/classes/kernel.oeclass @@ -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/ |