2010-03-28 22:40:32 +00:00
|
|
|
--- a/cpu/mips/config.mk
|
|
|
|
+++ b/cpu/mips/config.mk
|
2011-03-11 08:22:47 +00:00
|
|
|
@@ -23,17 +23,19 @@
|
2010-03-28 22:40:32 +00:00
|
|
|
v=$(shell $(AS) --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+' | cut -d. -f2)
|
|
|
|
MIPSFLAGS:=$(shell \
|
|
|
|
if [ "$v" -lt "14" ]; then \
|
|
|
|
- echo "-mcpu=4kc"; \
|
|
|
|
+ echo "-mcpu=mips32"; \
|
|
|
|
else \
|
|
|
|
- echo "-march=4kc -mtune=4kc"; \
|
|
|
|
+ echo "-mips32 -march=mips32 -mtune=mips32"; \
|
|
|
|
fi)
|
|
|
|
|
|
|
|
+ifndef ENDIANNESS
|
|
|
|
ifneq (,$(findstring 4KCle,$(CROSS_COMPILE)))
|
|
|
|
ENDIANNESS = -EL
|
|
|
|
else
|
|
|
|
ENDIANNESS = -EB
|
|
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
2011-03-11 08:22:47 +00:00
|
|
|
-MIPSFLAGS += $(ENDIANNESS)
|
|
|
|
+MIPSFLAGS += $(ENDIANNESS) -fno-schedule-insns -fno-schedule-insns2
|
2010-03-28 22:40:32 +00:00
|
|
|
|
2011-03-11 08:22:47 +00:00
|
|
|
PLATFORM_CPPFLAGS += $(MIPSFLAGS)
|