source: trunk/target/linux/generic/patches-2.6.38/950-powerpc_crtsavres_prereq.patch @ 26305

Last change on this file since 26305 was 26305, checked in by nbd, 6 years ago

Revert "kernel: remove all local symbols from kernel modules at link time to reduce their size"
Use -x when stripping kernel modules instead

File size: 2.2 KB
  • Makefile

    a b KBUILD_AFLAGS := -D__ASSEMBLY__ 
    362362KBUILD_AFLAGS_MODULE  := -DMODULE 
    363363KBUILD_CFLAGS_MODULE  := -DMODULE 
    364364KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds 
     365KBUILD_LDFLAGS_MODULE_PREREQ    :=  
    365366 
    366367# Read KERNELRELEASE from include/config/kernel.release (if it exists) 
    367368KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) 
    export VERSION PATCHLEVEL SUBLEVEL KERNE 
    371372export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC 
    372373export CPP AR NM STRIP OBJCOPY OBJDUMP 
    373374export MAKE AWK GENKSYMS INSTALLKERNEL PERL UTS_MACHINE 
    374 export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS 
     375export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE KBUILD_LDFLAGS_MODULE_PREREQ CHECK CHECKFLAGS 
    375376 
    376377export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS 
    377378export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE CFLAGS_GCOV 
  • arch/powerpc/Makefile

    a b else 
    9494endif 
    9595endif 
    9696 
    97 KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o 
     97KBUILD_LDFLAGS_MODULE_PREREQ += arch/powerpc/lib/crtsavres.o 
    9898 
    9999ifeq ($(CONFIG_TUNE_CELL),y) 
    100100        KBUILD_CFLAGS += $(call cc-option,-mtune=cell) 
  • scripts/Makefile.modpost

    a b quiet_cmd_cc_o_c = CC $@ 
    110110      cmd_cc_o_c = $(CC) $(c_flags) $(KBUILD_CFLAGS_MODULE) $(CFLAGS_MODULE) \ 
    111111                   -c -o $@ $< 
    112112 
    113 $(modules:.ko=.mod.o): %.mod.o: %.mod.c FORCE 
     113quiet_cmd_as_o_S        = AS $(quiet_modtag)  $@ 
     114cmd_as_o_S              = $(CC) $(a_flags) $(AFLAGS_MODULE) -c -o $@ $< 
     115 
     116$(KBUILD_LDFLAGS_MODULE_PREREQ): %.o: %.S FORCE 
     117        $(Q)mkdir -p $(dir $@) 
     118        $(call if_changed_dep,as_o_S) 
     119 
     120$(modules:.ko=.mod.o): %.mod.o: %.mod.c $(KBUILD_LDFLAGS_MODULE_PREREQ) FORCE 
    114121        $(call if_changed_dep,cc_o_c) 
    115122 
    116123targets += $(modules:.ko=.mod.o) 
    targets += $(modules:.ko=.mod.o) 
    119126quiet_cmd_ld_ko_o = LD [M]  $@ 
    120127      cmd_ld_ko_o = $(LD) -r $(LDFLAGS)                                 \ 
    121128                             $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE) \ 
     129                             $(KBUILD_LDFLAGS_MODULE_PREREQ)            \ 
    122130                             -o $@ $(filter-out FORCE,$^) 
    123131 
    124132$(modules): %.ko :%.o %.mod.o FORCE 
Note: See TracBrowser for help on using the repository browser.