]> git.itanic.dy.fi Git - linux-stable/commitdiff
kbuild: remove ARCH_POSTLINK from module builds
authorMasahiro Yamada <masahiroy@kernel.org>
Wed, 18 Oct 2023 15:19:47 +0000 (00:19 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 28 Oct 2023 12:10:08 +0000 (21:10 +0900)
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>
arch/mips/Makefile.postlink
arch/powerpc/Makefile.postlink
arch/riscv/Makefile.postlink
arch/x86/Makefile.postlink
scripts/Makefile.modfinal

index 34e3bd71f3b0e4184028ab99b620774ea0ea3728..6cfdc149d3bcd580cb969a9f312f886776552dd7 100644 (file)
@@ -31,9 +31,6 @@ ifeq ($(CONFIG_RELOCATABLE),y)
        $(call if_changed,relocs)
 endif
 
-%.ko: FORCE
-       @true
-
 clean:
        @true
 
index 1f860b3c9bec549f9fec6762199473871f9590fc..ae5a4256b03d89bc912ab3900fdac58674ede984 100644 (file)
@@ -35,9 +35,6 @@ ifdef CONFIG_RELOCATABLE
        $(call if_changed,relocs_check)
 endif
 
-%.ko: FORCE
-       @true
-
 clean:
        rm -f .tmp_symbols.txt
 
index a46fc578b30bd6fbd980435831dbff93f65170d0..829b9abc91f613902d8d574654acf60abd2e658c 100644 (file)
@@ -36,9 +36,6 @@ ifdef CONFIG_RELOCATABLE
        $(call if_changed,relocs_strip)
 endif
 
-%.ko: FORCE
-       @true
-
 clean:
        @true
 
index 936093d291605ebcae5284bfacf1db8b6d5c9b1c..fef2e977cc7dc9c55b359a6afd7219bf39a4c5d8 100644 (file)
@@ -34,9 +34,6 @@ ifeq ($(CONFIG_X86_NEED_RELOCS),y)
        $(call cmd,strip_relocs)
 endif
 
-%.ko: FORCE
-       @true
-
 clean:
        @rm -f $(OUT_RELOCS)/vmlinux.relocs
 
index b3a6aa8fbe8cb4ea7665a0147c48a8c9c940a253..8568d256d6fbff5dfc4b9553f9b829ed92b258e3 100644 (file)
@@ -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 =                                                     \