From: Ilias Apalodimas Date: Tue, 20 May 2025 05:21:21 +0000 (+0300) Subject: kbuild: move archive command to scripts/Makefile.lib X-Git-Tag: v2025.10-rc1~118^2~61^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47a4770c7a2f6dab7ada9ba77b12bd41939db551;p=pandora-u-boot.git kbuild: move archive command to scripts/Makefile.lib Backport from kernel commit 898f5a009f22 ("kbuild: move archive command to scripts/Makefile.lib") Signed-off-by: Ilias Apalodimas --- diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 73e1d71e30d..d90b0b7aa6a 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -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 diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 28295c7ff12..c441be352da 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -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 # ---------------------------------------------------------------------------