source: trunk/target/linux/generic/patches-2.6.37/950-powerpc_crtsavres_prereq.patch @ 23828

Last change on this file since 23828 was 23828, checked in by acoul, 6 years ago

target/linux: add preliminary 2.6.37 kernel support

File size: 2.2 KB
  • Makefile

    a b KBUILD_AFLAGS := -D__ASSEMBLY__ 
    361361KBUILD_AFLAGS_MODULE  := -DMODULE 
    362362KBUILD_CFLAGS_MODULE  := -DMODULE 
    363363KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds 
     364KBUILD_LDFLAGS_MODULE_PREREQ    :=  
    364365 
    365366# Read KERNELRELEASE from include/config/kernel.release (if it exists) 
    366367KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null) 
    export VERSION PATCHLEVEL SUBLEVEL KERNE 
    370371export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC 
    371372export CPP AR NM STRIP OBJCOPY OBJDUMP 
    372373export MAKE AWK GENKSYMS INSTALLKERNEL PERL UTS_MACHINE 
    373 export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS 
     374export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE KBUILD_LDFLAGS_MODULE_PREREQ CHECK CHECKFLAGS 
    374375 
    375376export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS 
    376377export 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.