Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: remove ARCH_POSTLINK from module builds

The '%.ko' rule in arch/*/Makefile.postlink does nothing but call the
'true' command.

Remove the unneeded code.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>

+1 -16
+1 -4
scripts/Makefile.modfinal
··· 28 28 %.mod.o: %.mod.c FORCE 29 29 $(call if_changed_dep,cc_o_c) 30 30 31 - ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink) 32 - 33 31 quiet_cmd_ld_ko_o = LD [M] $@ 34 32 cmd_ld_ko_o += \ 35 33 $(LD) -r $(KBUILD_LDFLAGS) \ 36 34 $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE) \ 37 - -T scripts/module.lds -o $@ $(filter %.o, $^); \ 38 - $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) 35 + -T scripts/module.lds -o $@ $(filter %.o, $^) 39 36 40 37 quiet_cmd_btf_ko = BTF [M] $@ 41 38 cmd_btf_ko = \