1.1 --- a/scripts/build/kernel/linux.sh Sun Sep 23 11:59:28 2012 +0900
1.2 +++ b/scripts/build/kernel/linux.sh Wed Sep 26 16:37:31 2012 +0200
1.3 @@ -6,12 +6,14 @@
1.4 if [ "${CT_ARCH_USE_MMU}" = "y" ]; then
1.5 CT_TARGET_KERNEL="linux"
1.6 else
1.7 - # Sometime, noMMU linux targets have a -uclinux tuple, while
1.8 - # sometime it's -linux. We currently have only one noMMU linux
1.9 - # target, and it uses -linux, so let's just use that. Time
1.10 - # to fix that later...
1.11 - # CT_TARGET_KERNEL="uclinux"
1.12 - CT_TARGET_KERNEL="linux"
1.13 + # Some no-mmu linux targets requires a -uclinux tuple (like m68k/cf),
1.14 + # while others must have a -linux tuple (like bfin). Other targets
1.15 + # should be added here when someone starts to care about them.
1.16 + case "${CT_ARCH}" in
1.17 + blackfin) CT_TARGET_KERNEL="linux" ;;
1.18 + m68k) CT_TARGET_KERNEL="uclinux" ;;
1.19 + *) CT_Abort "Unsupported no-mmu arch '${CT_ARCH}'"
1.20 + esac
1.21 fi
1.22 }
1.23