diff mbox

Add MIPS64R2 support.

Message ID e86d5167-e9a7-4454-8e60-ceebe84c1211@BAMAIL02.ba.imgtec.org
State Accepted, archived
Headers show

Commit Message

Steve Ellcey Feb. 13, 2014, 12:44 a.m. UTC
There is support for mips64(r1) already in uclibc, this change adds mips64r2
by adding the MIPS64R2 config variable and checking it in Rules.mak.

Signed-off-by: Steve Ellcey <sellcey@mips.com>
---
 Rules.mak                 |    1 +
 extra/Configs/Config.mips |    3 +++
 2 files changed, 4 insertions(+)

Comments

Bernhard Reutner-Fischer Feb. 15, 2014, 10:17 a.m. UTC | #1
On Wed, Feb 12, 2014 at 04:44:57PM -0800, Steve Ellcey  wrote:
> There is support for mips64(r1) already in uclibc, this change adds mips64r2
> by adding the MIPS64R2 config variable and checking it in Rules.mak.

Generally we will remove our special flags handling from the buildsys
after the next release and rely on the user's toolchain to be setup
properly. Until then i take this mips hunk to ease testing.

Applied.
Thanks,
diff mbox

Patch

diff --git a/Rules.mak b/Rules.mak
index 82a166c..e637362 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -421,6 +421,7 @@  ifeq ($(TARGET_ARCH),mips)
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32R2)+=-march=mips32r2 -mtune=mips32r2
 	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
+	CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64R2)+=-mips64r2 -mtune=mips64r2
 	ifeq ($(strip $(ARCH_BIG_ENDIAN)),y)
 		CPU_LDFLAGS-$(CONFIG_MIPS_N64_ABI)+=-Wl,-melf64btsmip
 		CPU_LDFLAGS-$(CONFIG_MIPS_O32_ABI)+=-Wl,-melf32btsmip
diff --git a/extra/Configs/Config.mips b/extra/Configs/Config.mips
index 1f84265..4d30d31 100644
--- a/extra/Configs/Config.mips
+++ b/extra/Configs/Config.mips
@@ -72,4 +72,7 @@  config CONFIG_MIPS_ISA_MIPS32R2
 config CONFIG_MIPS_ISA_MIPS64
 	bool "MIPS64"
 
+config CONFIG_MIPS_ISA_MIPS64R2
+	bool "MIPS64r2"
+
 endchoice