MIPS: add support for M6201 cores
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 18 Oct 2016 15:55:25 +0000 (16:55 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 19 Oct 2016 21:31:29 +0000 (23:31 +0200)
-march=m6201 is not yet supported in GCC upstream, so disabling all
versions when selecting this core.

Note that M6201 implies a MIPS R6 CPU, and some GCC versions are already
disabled for R6, so we don't need to disable those ones for M6201 as
well.

The external Codescape IMG GNU Linux Toolchain has support for this
core.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/Config.in.mips
package/gcc/Config.in.host

index f7bfa2168472bb589b9fe1274f490d9c307c1b39..3662fedca892e9ca04b8fea98f1149853fd24101 100644 (file)
@@ -55,6 +55,10 @@ config BR2_mips_m5101
        bool "M5101"
        depends on !BR2_ARCH_IS_64
        select BR2_MIPS_CPU_MIPS32R5
+config BR2_mips_m6201
+       bool "M6201"
+       depends on !BR2_ARCH_IS_64
+       select BR2_MIPS_CPU_MIPS32R6
 config BR2_mips_p5600
        bool "P5600"
        depends on !BR2_ARCH_IS_64
@@ -131,6 +135,7 @@ config BR2_GCC_TARGET_ARCH
        default "interaptiv"    if BR2_mips_interaptiv
        default "m5100"         if BR2_mips_m5100
        default "m5101"         if BR2_mips_m5101
+       default "m6201"         if BR2_mips_m6201
        default "p5600"         if BR2_mips_p5600
        default "mips64"        if BR2_mips_64
        default "mips64r2"      if BR2_mips_64r2
index df60c653d3392237b23410822ce52e98c2abb314..d204bf7deb8a335a29935e7ce2529420f569ddb7 100644 (file)
@@ -63,7 +63,8 @@ choice
                depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
                # Unsupported MIPS cores
                depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
-                       !BR2_mips_m5101 && !BR2_mips_i6400 && !BR2_mips_p6600
+                       !BR2_mips_m5101 && !BR2_mips_m6201 && !BR2_mips_i6400 && \
+                       !BR2_mips_p6600
                # musl mips64 unsupported
                depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
                select BR2_TOOLCHAIN_GCC_AT_LEAST_5
@@ -73,7 +74,7 @@ choice
                # Broken or unsupported architectures
                depends on !BR2_arc
                # Unsupported MIPS cores
-               depends on !BR2_mips_p6600
+               depends on !BR2_mips_m6201 && !BR2_mips_p6600
                select BR2_TOOLCHAIN_GCC_AT_LEAST_6
 
 endchoice