package/mtd: don't append jffs2 data multiple times
[openwrt.git] / package / uboot-lantiq / patches / 010-fix-mips-flags.patch
1 --- a/cpu/mips/config.mk
2 +++ b/cpu/mips/config.mk
3 @@ -23,17 +23,19 @@
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 +MIPSFLAGS += $(ENDIANNESS) -fno-schedule-insns -fno-schedule-insns2
24
25 PLATFORM_CPPFLAGS += $(MIPSFLAGS)
This page took 0.045307 seconds and 5 git commands to generate.