浏览代码

MIPS: add support for I6400 cores

-march=i6400 support starts from GCC-6, so disable previous versions
when selecting this core.

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

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Vicente Olivert Riera 8 年之前
父节点
当前提交
ea52e3d01a
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      arch/Config.in.mips
  2. 1 1
      package/gcc/Config.in.host

+ 5 - 0
arch/Config.in.mips

@@ -71,6 +71,10 @@ config BR2_mips_64r6
 	bool "Generic MIPS64R6"
 	bool "Generic MIPS64R6"
 	depends on BR2_ARCH_IS_64
 	depends on BR2_ARCH_IS_64
 	select BR2_MIPS_CPU_MIPS64R6
 	select BR2_MIPS_CPU_MIPS64R6
+config BR2_mips_i6400
+	bool "I6400"
+	depends on BR2_ARCH_IS_64
+	select BR2_MIPS_CPU_MIPS64R6
 endchoice
 endchoice
 
 
 
 
@@ -123,6 +127,7 @@ config BR2_GCC_TARGET_ARCH
 	default "mips64r2"	if BR2_mips_64r2
 	default "mips64r2"	if BR2_mips_64r2
 	default "mips64r5"	if BR2_mips_64r5
 	default "mips64r5"	if BR2_mips_64r5
 	default "mips64r6"	if BR2_mips_64r6
 	default "mips64r6"	if BR2_mips_64r6
+	default "i6400"		if BR2_mips_i6400
 
 
 config BR2_MIPS_OABI32
 config BR2_MIPS_OABI32
 	bool
 	bool

+ 1 - 1
package/gcc/Config.in.host

@@ -101,7 +101,7 @@ choice
 		depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
 		depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64el))
 		# Unsupported MIPS cores
 		# Unsupported MIPS cores
 		depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
 		depends on !BR2_mips_interaptiv && !BR2_mips_m5100 && \
-			!BR2_mips_m5101
+			!BR2_mips_m5101 && !BR2_mips_i6400
 		# musl mips64 unsupported
 		# musl mips64 unsupported
 		depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
 		depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
 		select BR2_GCC_NEEDS_MPC
 		select BR2_GCC_NEEDS_MPC