summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2016-09-30 10:36:55 +0100
committerPeter Korsgaard <peter@korsgaard.com>2016-10-15 13:22:17 +0200
commit067a46474ad2ebe3b335f6fecaa3816b833d0afb (patch)
tree4b95f0043f0d8103334c4629c59c0f5faa018b60
parentef3e7323ef036cff006aeac9290ce19654b8254f (diff)
downloadbuildroot-067a46474ad2ebe3b335f6fecaa3816b833d0afb.tar.gz
buildroot-067a46474ad2ebe3b335f6fecaa3816b833d0afb.zip
MIPS: add support for M5100 cores
-march=m5100 support starts from GCC-6, so disable previous versions when selecting this core. Note that M5100 implies a MIPS R5 CPU, and some GCC versions are already disabled for R5, so we don't need to disable those ones for M5100 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>
-rw-r--r--arch/Config.in.mips5
-rw-r--r--package/gcc/Config.in.host2
-rw-r--r--toolchain/toolchain-external/Config.in2
3 files changed, 7 insertions, 2 deletions
diff --git a/arch/Config.in.mips b/arch/Config.in.mips
index ac87e2cf77..9ed42a2580 100644
--- a/arch/Config.in.mips
+++ b/arch/Config.in.mips
@@ -47,6 +47,10 @@ config BR2_mips_interaptiv
bool "interAptiv"
depends on !BR2_ARCH_IS_64
select BR2_MIPS_CPU_MIPS32R2
+config BR2_mips_m5100
+ bool "M5100"
+ depends on !BR2_ARCH_IS_64
+ select BR2_MIPS_CPU_MIPS32R5
config BR2_mips_64
bool "Generic MIPS64"
depends on BR2_ARCH_IS_64
@@ -109,6 +113,7 @@ config BR2_GCC_TARGET_ARCH
default "mips32r5" if BR2_mips_32r5
default "mips32r6" if BR2_mips_32r6
default "interaptiv" if BR2_mips_interaptiv
+ default "m5100" if BR2_mips_m5100
default "mips64" if BR2_mips_64
default "mips64r2" if BR2_mips_64r2
default "mips64r5" if BR2_mips_64r5
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index a816464e1c..2d853879c3 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -100,7 +100,7 @@ choice
# musl ppc64 unsupported
depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
# Unsupported MIPS cores
- depends on !BR2_mips_interaptiv
+ depends on !BR2_mips_interaptiv && !BR2_mips_m5100
# musl mips64 unsupported
depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
select BR2_GCC_NEEDS_MPC
diff --git a/toolchain/toolchain-external/Config.in b/toolchain/toolchain-external/Config.in
index e3d496475b..254a1e5c94 100644
--- a/toolchain/toolchain-external/Config.in
+++ b/toolchain/toolchain-external/Config.in
@@ -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
+ depends on !BR2_mips_interaptiv && !BR2_mips_m5100
# Unsupported for MIPS R6
depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
select BR2_TOOLCHAIN_EXTERNAL_MUSL
OpenPOWER on IntegriCloud