Makefile.modpost (3eb66e91a25497065c5322b1268cbc3953642227) Makefile.modpost (afa974b771281fd89e8fdcb71152152f17fb8303)
1# SPDX-License-Identifier: GPL-2.0
2# ===========================================================================
3# Module versions
4# ===========================================================================
5#
6# Stage one of module building created the following:
7# a) The individual .o files used for the module
8# b) A <module>.o file which is the .o files above linked together

--- 108 unchanged lines hidden (view full) ---

117
118ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)
119
120# Step 6), final link of the modules with optional arch pass after final link
121quiet_cmd_ld_ko_o = LD [M] $@
122 cmd_ld_ko_o = \
123 $(LD) -r $(KBUILD_LDFLAGS) \
124 $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE) \
1# SPDX-License-Identifier: GPL-2.0
2# ===========================================================================
3# Module versions
4# ===========================================================================
5#
6# Stage one of module building created the following:
7# a) The individual .o files used for the module
8# b) A <module>.o file which is the .o files above linked together

--- 108 unchanged lines hidden (view full) ---

117
118ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink)
119
120# Step 6), final link of the modules with optional arch pass after final link
121quiet_cmd_ld_ko_o = LD [M] $@
122 cmd_ld_ko_o = \
123 $(LD) -r $(KBUILD_LDFLAGS) \
124 $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE) \
125 -o $@ $(filter-out FORCE,$^) ; \
125 -o $@ $(real-prereqs) ; \
126 $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
127
128$(modules): %.ko :%.o %.mod.o FORCE
129 +$(call if_changed,ld_ko_o)
130
131targets += $(modules)
132
133

--- 19 unchanged lines hidden ---
126 $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
127
128$(modules): %.ko :%.o %.mod.o FORCE
129 +$(call if_changed,ld_ko_o)
130
131targets += $(modules)
132
133

--- 19 unchanged lines hidden ---