summaryrefslogtreecommitdiff
path: root/scripts/build/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/kernel')
-rw-r--r--scripts/build/kernel/linux.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 5b191f4..9d27d92 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -6,12 +6,14 @@ CT_DoKernelTupleValues() {
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
}