]> git.itanic.dy.fi Git - linux-stable/commitdiff
kbuild: simplify cmd_ld_multi_m
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 22 Oct 2023 16:30:14 +0000 (01:30 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 28 Oct 2023 12:10:08 +0000 (21:10 +0900)
$(patsubst %.o,%.mod,$@) can be replaced with $<.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.build

index 82e3fb19fdafc933c53c9d93ac74de483c6e7cda..5eefce3dad634383d98fe4f8ba87952e6073cddd 100644 (file)
@@ -425,7 +425,7 @@ $(obj)/lib.a: $(lib-y) FORCE
        $(call if_changed,ar)
 
 quiet_cmd_ld_multi_m = LD [M]  $@
-      cmd_ld_multi_m = $(LD) $(ld_flags) -r -o $@ @$(patsubst %.o,%.mod,$@) $(cmd_objtool)
+      cmd_ld_multi_m = $(LD) $(ld_flags) -r -o $@ @$< $(cmd_objtool)
 
 define rule_ld_multi_m
        $(call cmd_and_savecmd,ld_multi_m)