diff options
author | Esben Haabendal <esben.haabendal@prevas.dk> | 2012-09-26 09:09:23 +0200 |
---|---|---|
committer | Esben Haabendal <esben.haabendal@prevas.dk> | 2012-09-26 09:09:23 +0200 |
commit | 651b79e7ce244eb30b80e22ccb768583ed148fcf (patch) | |
tree | 23cc7871c332e5bde19ff15ee3852393e960f042 | |
parent | 4cda47b3dc64fe9736965a28ef615625703f86eb (diff) | |
download | crosstool-ng-651b79e7ce244eb30b80e22ccb768583ed148fcf.tar.gz crosstool-ng-651b79e7ce244eb30b80e22ccb768583ed148fcf.tar.bz2 crosstool-ng-651b79e7ce244eb30b80e22ccb768583ed148fcf.zip |
kernel/linux: change m68k/no-mmu linux arch tuple to use -uclinux
GCC requires m68k arch tuples to be *-*-uclinux-* to support Linux on
no-mmu m68k (ColdFire) cpus.
Blackfin arch tuple must be *-*-linux-uclibc for FD_PIC_ELF toolchains,
so we cannot just switch to uclinux for no-mmu Linux toolchains.
Signed-off-by: "Esben Haabendal" <esben@haabendal.dk>
Message-Id: <876271s1ee.fsf@arh128.prevas.dk>
PatchWork-Id: 186976
-rw-r--r-- | scripts/build/kernel/linux.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh index 5b191f48..9d27d922 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 } |