summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-11-16 16:26:35 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-11-16 16:26:35 +0000
commitf6552f749d672154866d7b82f4edba2321b80b97 (patch)
tree590c3506a00e4bedb174726a46da25b9a5954035 /Rules.mak
parent9f77c8c4934538ef7bc6964d8a7e6ac0945c8447 (diff)
Patch from Jeffrey Baitis <baitisj@evolution.com> for mips arch tuning.
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index eeb0a8d15..1b7b9fc3a 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -127,6 +127,15 @@ ifeq ($(strip $(TARGET_ARCH)),arm)
CPU_CFLAGS-$(CONFIG_ARM_XSCALE)+=-march=armv4 -Wa,-mcpu=xscale
endif
+ifeq ($(strip $(TARGET_ARCH)),mips)
+ CPU_CFLAGS-$(CONFIG_MIPS_ISA_1)+=-mips1
+ CPU_CFLAGS-$(CONFIG_MIPS_ISA_2)+=-mips2 -mtune=mips2
+ CPU_CFLAGS-$(CONFIG_MIPS_ISA_3)+=-mips3 -mtune=mips3
+ 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
+endif
+
ifeq ($(strip $(TARGET_ARCH)),sh)
OPTIMIZATION+=-fstrict-aliasing
OPTIMIZATION+= $(call check_gcc,-mprefergot,)