[kernel] refresh 2.6.35 patches
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-2.6.35 / 991-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 @@ -130,7 +130,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_6xx) += -Wa,-maltivec
14 cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec
15 cpu-as-$(CONFIG_E500) += -Wa,-me500
16 --- a/arch/powerpc/boot/Makefile
17 +++ b/arch/powerpc/boot/Makefile
18 @@ -38,10 +38,10 @@ BOOTCFLAGS += -I$(obj) -I$(srctree)/$(ob
19 DTS_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