Root/package/uboot-lantiq/patches/010-fix-mips-flags.patch

1--- a/cpu/mips/config.mk
2+++ b/cpu/mips/config.mk
3@@ -23,16 +23,18 @@
4 v=$(shell $(AS) --version | grep 'GNU assembler' | egrep -o '2\.[0-9\.]+' | cut -d. -f2)
5 MIPSFLAGS:=$(shell \
6 if [ "$v" -lt "14" ]; then \
7- echo "-mcpu=4kc"; \
8+ echo "-mcpu=mips32"; \
9 else \
10- echo "-march=4kc -mtune=4kc"; \
11+ echo "-mips32 -march=mips32 -mtune=mips32"; \
12 fi)
13 
14+ifndef ENDIANNESS
15 ifneq (,$(findstring 4KCle,$(CROSS_COMPILE)))
16 ENDIANNESS = -EL
17 else
18 ENDIANNESS = -EB
19 endif
20+endif
21 
22 MIPSFLAGS += $(ENDIANNESS)
23 
24

Archive Download this file



interactive