summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-11-04 20:17:03 +0000
committerEric Andersen <andersen@codepoet.org>2006-11-04 20:17:03 +0000
commit1da8fd9223c5a06236d4053582184790424592c2 (patch)
tree550f0417201e205319a36e96bfae37e3442007a9 /Rules.mak
parentbcd949c7f80ccf66c8ef869367a9b33dbb51a261 (diff)
mips64 patch from Atsushi Nemoto:
Add selection of 3 ABI. CPU_CFLAGS is needed to generate correct sysnum.h. Fix test/Rules.mak.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak11
1 files changed, 11 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index f19529741..99d7a88a9 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -207,6 +207,17 @@ ifeq ($(TARGET_ARCH),mips)
CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
+ ifeq ($(strip $(ARCH_BIG_ENDIAN)),y)
+ CPU_LDFLAGS-$(CONFIG_MIPS_N64_ABI)+=-melf64btsmip
+ CPU_LDFLAGS-$(CONFIG_MIPS_O32_ABI)+=-melf32btsmip
+ endif
+ ifeq ($(strip $(ARCH_LITTLE_ENDIAN)),y)
+ CPU_LDFLAGS-$(CONFIG_MIPS_N64_ABI)+=-melf64ltsmip
+ CPU_LDFLAGS-$(CONFIG_MIPS_O32_ABI)+=-melf32ltsmip
+ endif
+ CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
+ CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
+ CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
endif
ifeq ($(TARGET_ARCH),nios)