source: trunk/target/linux/generic-2.6/patches-2.6.33/991-ppc4xx_optimization.patch @ 19905

Last change on this file since 19905 was 19905, checked in by matteo, 7 years ago

kernel: add 2.6.33 patches

File size: 1.2 KB
  • arch/powerpc/Makefile

    Upstream doesn't optimize the kernel and bootwrappers for ppc44x because
    they still want to support gcc 3.3 -- well, we don't.
    
    a b ifeq ($(CONFIG_FUNCTION_TRACER),y) 
    123123KBUILD_CFLAGS           += -mno-sched-epilog 
    124124endif 
    125125 
    126 cpu-as-$(CONFIG_4xx)            += -Wa,-m405 
     126cpu-as-$(CONFIG_40x)            += -Wa,-m405 
     127cpu-as-$(CONFIG_44x)            += -Wa,-m440 
    127128cpu-as-$(CONFIG_6xx)            += -Wa,-maltivec 
    128129cpu-as-$(CONFIG_POWER4)         += -Wa,-maltivec 
    129130cpu-as-$(CONFIG_E500)           += -Wa,-me500 
  • arch/powerpc/boot/Makefile

    a b BOOTCFLAGS += -I$(obj) -I$(srctree)/$(ob 
    3838DTS_FLAGS       ?= -p 1024 
    3939 
    4040$(obj)/4xx.o: BOOTCFLAGS += -mcpu=405 
    41 $(obj)/ebony.o: BOOTCFLAGS += -mcpu=405 
     41$(obj)/ebony.o: BOOTCFLAGS += -mcpu=440 
    4242$(obj)/cuboot-hotfoot.o: BOOTCFLAGS += -mcpu=405 
    43 $(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=405 
    44 $(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=405 
     43$(obj)/cuboot-taishan.o: BOOTCFLAGS += -mcpu=440 
     44$(obj)/cuboot-katmai.o: BOOTCFLAGS += -mcpu=440 
    4545$(obj)/cuboot-acadia.o: BOOTCFLAGS += -mcpu=405 
    4646$(obj)/treeboot-walnut.o: BOOTCFLAGS += -mcpu=405 
    4747$(obj)/virtex405-head.o: BOOTAFLAGS += -mcpu=405 
Note: See TracBrowser for help on using the repository browser.