e69275d4c5f8d7c38f656a6a166efa3a0eaadea4
[openwrt.git] / target / linux / generic / patches-3.14 / 320-ppc4xx_optimization.patch
1 Upstream doesn't optimize the kernel and bootwrappers for ppc44x because
2 they still want to support gcc 3.3 -- well, we don't.
3
4 --- a/arch/powerpc/Makefile
5 +++ b/arch/powerpc/Makefile
6 @@ -189,7 +189,8 @@ ifeq ($(CONFIG_FUNCTION_TRACER),y)
7  KBUILD_CFLAGS          += -mno-sched-epilog
8  endif
9  
10 -cpu-as-$(CONFIG_4xx)           += -Wa,-m405
11 +cpu-as-$(CONFIG_40x)           += -Wa,-m405
12 +cpu-as-$(CONFIG_44x)           += -Wa,-m440
13  cpu-as-$(CONFIG_ALTIVEC)       += -Wa,-maltivec
14  cpu-as-$(CONFIG_E200)          += -Wa,-me200
15  
16 --- a/arch/powerpc/boot/Makefile
17 +++ b/arch/powerpc/boot/Makefile
18 @@ -39,10 +39,10 @@ BOOTCFLAGS  += -I$(obj) -I$(srctree)/$(ob
19  DTC_FLAGS      ?= -p 1024
20  
21  $(obj)/4xx.o: BOOTCFLAGS += -mcpu=405
22 -$(obj)/ebony.o: BOOTCFLAGS += -mcpu=405
23 +$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440
24  $(obj)/cuboot-hotfoot.o: BOOTCFLAGS += -mcpu=405
25 -$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405
26 -$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405
27 +$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440
28 +$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440
29  $(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405
30  $(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405
31  $(obj)/treeboot-iss4xx.o: BOOTCFLAGS += -mcpu=405