diff -r f46a1d105896 -r 603ccf80c48b scripts/build/kernel/linux.sh --- a/scripts/build/kernel/linux.sh Sun Sep 23 11:59:28 2012 +0900 +++ b/scripts/build/kernel/linux.sh Wed Sep 26 09:09:23 2012 +0200 @@ -6,12 +6,14 @@ if [ "${CT_ARCH_USE_MMU}" = "y" ]; then CT_TARGET_KERNEL="linux" else - # Sometime, noMMU linux targets have a -uclinux tuple, while - # sometime it's -linux. We currently have only one noMMU linux - # target, and it uses -linux, so let's just use that. Time - # to fix that later... - # CT_TARGET_KERNEL="uclinux" - CT_TARGET_KERNEL="linux" + # Some no-mmu linux targets requires a -uclinux tuple (like m68k/cf), + # while others must have a -linux tuple (like bfin). Other targets + # should be added here when someone starts to care about them. + case "${CT_ARCH}" in + blackfin) CT_TARGET_KERNEL="linux" ;; + m68k) CT_TARGET_KERNEL="uclinux" ;; + *) CT_Abort "Unsupported no-mmu arch '${CT_ARCH}'" + esac fi }