summaryrefslogtreecommitdiffstats
path: root/package/uboot-lantiq/patches/010-fix-mips-flags.patch
blob: 4c706a78434867b21ee18bb220d9569b074acfaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/cpu/mips/config.mk
+++ b/cpu/mips/config.mk
@@ -23,16 +23,18 @@
 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
 
 MIPSFLAGS += $(ENDIANNESS)