Patchwork kernel/linux: change m68k/no-mmu linux arch tuple to use -uclinux

login
register
mail settings
Submitter Esben Haabendal
Date Sept. 26, 2012, 7:12 a.m.
Message ID <876271s1ee.fsf@arh128.prevas.dk>
Download mbox | patch
Permalink /patch/186976/
State Accepted
Commit 603ccf80c48b
Headers show

Comments

Esben Haabendal - Sept. 26, 2012, 7:12 a.m.
# HG changeset patch
# User Esben Haabendal <esben.haabendal@prevas.dk>
# Date 1348643363 -7200
# Node ID b13cbdc17249ab85e88e16918dc951d396b59060
# Parent  f36c207348efc55653a037a7e17654c4ff388b86
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>


--
For unsubscribe information see http://sourceware.org/lists.html#faq
Yann E. MORIN - Sept. 27, 2012, 9:17 p.m.
Esben, All,

Your patch:
    kernel/linux: change m68k/no-mmu linux arch tuple to use -uclinux

has been applied as #603ccf80c48b. Thank you!

Regards,
Yann E. MORIN.



--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff -r f36c207348ef -r b13cbdc17249 scripts/build/kernel/linux.sh
--- a/scripts/build/kernel/linux.sh	Thu Sep 20 11:20:16 2012 +0800
+++ 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
 }