]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
kbuild: move archive command to scripts/Makefile.lib
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 20 May 2025 05:21:21 +0000 (08:21 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 30 May 2025 00:42:37 +0000 (18:42 -0600)
Backport from kernel
commit 898f5a009f22 ("kbuild: move archive command to scripts/Makefile.lib")

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
scripts/Makefile.build
scripts/Makefile.lib

index 73e1d71e30df6182ad66fd26d888156822515479..d90b0b7aa6a0ce07bf9e57f88a713e9f45ccbbc8 100644 (file)
@@ -355,11 +355,9 @@ $(modorder-target): $(subdir-ym) FORCE
 # Rule to compile a set of .o files into one .a file
 #
 ifdef lib-target
-quiet_cmd_link_l_target = AR      $@
-cmd_link_l_target = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(real-prereqs)
 
 $(lib-target): $(lib-y) FORCE
-       $(call if_changed,link_l_target)
+       $(call if_changed,ar)
 
 targets += $(lib-target)
 endif
index 28295c7ff125151b799ee10c994c072084f8b2a8..c441be352da149c8165c07cb1505f902520b8a37 100644 (file)
@@ -278,6 +278,11 @@ $(obj)/%: $(src)/%_shipped
 quiet_cmd_ld = LD      $@
 cmd_ld = $(LD) $(ld_flags) $(filter-out FORCE,$^) -o $@
 
+# Archive
+# ---------------------------------------------------------------------------
+quiet_cmd_ar = AR      $@
+cmd_ar = rm -f $@; $(AR) rcsTP$(KBUILD_ARFLAGS) $@ $(real-prereqs)
+
 # Objcopy
 # ---------------------------------------------------------------------------