diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-19 00:19:47 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-10-28 21:10:08 +0900 |
commit | 7f6d8f7e43fb516f060cf71672a922031aa5faa9 (patch) | |
tree | 2e350ad484991bdb1ec73c4376a9f05daf7dc141 /scripts | |
parent | 9d361173edc4f8c25440f6db3ab46f5ab7c107cf (diff) | |
download | linux-stable-7f6d8f7e43fb516f060cf71672a922031aa5faa9.tar.gz linux-stable-7f6d8f7e43fb516f060cf71672a922031aa5faa9.tar.bz2 linux-stable-7f6d8f7e43fb516f060cf71672a922031aa5faa9.zip |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.modfinal | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/Makefile.modfinal b/scripts/Makefile.modfinal index b3a6aa8fbe8c..8568d256d6fb 100644 --- a/scripts/Makefile.modfinal +++ b/scripts/Makefile.modfinal @@ -28,14 +28,11 @@ quiet_cmd_cc_o_c = CC [M] $@ %.mod.o: %.mod.c FORCE $(call if_changed_dep,cc_o_c) -ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink) - quiet_cmd_ld_ko_o = LD [M] $@ cmd_ld_ko_o += \ $(LD) -r $(KBUILD_LDFLAGS) \ $(KBUILD_LDFLAGS_MODULE) $(LDFLAGS_MODULE) \ - -T scripts/module.lds -o $@ $(filter %.o, $^); \ - $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) + -T scripts/module.lds -o $@ $(filter %.o, $^) quiet_cmd_btf_ko = BTF [M] $@ cmd_btf_ko = \ |