MIPS: add support for M5101 cores
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Fri, 30 Sep 2016 09:36:56 +0000 (10:36 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 15 Oct 2016 11:22:17 +0000 (13:22 +0200)
-march=m5101 support starts from GCC-6, so disable previous versions
when selecting this core.

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

Also disable external toolchains that don't support this core.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arch/Config.in.mips
package/gcc/Config.in.host
toolchain/toolchain-external/Config.in

index 9ed42a258073007ff1dc8a44b11afd718a5c4011..3881909f7662e179cdd79da0e6a665a856d20138 100644 (file)
@@ -51,6 +51,10 @@ config BR2_mips_m5100
        bool "M5100"
        depends on !BR2_ARCH_IS_64
        select BR2_MIPS_CPU_MIPS32R5
+config BR2_mips_m5101
+       bool "M5101"
+       depends on !BR2_ARCH_IS_64
+       select BR2_MIPS_CPU_MIPS32R5
 config BR2_mips_64
        bool "Generic MIPS64"
        depends on BR2_ARCH_IS_64
@@ -114,6 +118,7 @@ config BR2_GCC_TARGET_ARCH
        default "mips32r6"      if BR2_mips_32r6
        default "interaptiv"    if BR2_mips_interaptiv
        default "m5100"         if BR2_mips_m5100
+       default "m5101"         if BR2_mips_m5101
        default "mips64"        if BR2_mips_64
        default "mips64r2"      if BR2_mips_64r2
        default "mips64r5"      if BR2_mips_64r5
index 2d853879c3b5eff01d759bd2b56f7e92a7058044..15b23dbeeb016c969cc9d3c4a73f1f2a5f58479e 100644 (file)
@@ -100,7 +100,8 @@ choice
                # musl ppc64 unsupported
                depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
                # Unsupported MIPS cores
-               depends on !BR2_mips_interaptiv && !BR2_mips_m5100
+               depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
+                       !BR2_mips_m5101
                # musl mips64 unsupported
                depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
                select BR2_GCC_NEEDS_MPC
index 254a1e5c944d2690a1b8eb92bbe8e1fd452fbc3d..62c2cd21b26ef6dfef611a000bde1cfd6d1658e1 100644 (file)
@@ -598,7 +598,7 @@ config BR2_TOOLCHAIN_EXTERNAL_MUSL_CROSS
                BR2_x86_64
        depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
        # Unsupported MIPS cores
-       depends on !BR2_mips_interaptiv && !BR2_mips_m5100
+       depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && !BR2_mips_m5101
        # Unsupported for MIPS R6
        depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
        select BR2_TOOLCHAIN_EXTERNAL_MUSL