kernel/linux: change m68k/no-mmu linux arch tuple to use -uclinux
authorEsben Haabendal <esben.haabendal@prevas.dk>
Wed Sep 26 09:09:23 2012 +0200 (2012-09-26)
changeset 3065603ccf80c48b
parent 3064 7df954dd93df
child 3066 43ace4bb005e
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
scripts/build/kernel/linux.sh
     1.1 --- a/scripts/build/kernel/linux.sh	Tue Sep 25 23:23:53 2012 +0200
     1.2 +++ b/scripts/build/kernel/linux.sh	Wed Sep 26 09:09:23 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