summaryrefslogtreecommitdiff
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2025-05-20 08:21:21 +0300
committerTom Rini <[email protected]>2025-05-29 18:42:37 -0600
commit47a4770c7a2f6dab7ada9ba77b12bd41939db551 (patch)
tree92402696b96b8b4cb6264c09177194e9b60368c9 /scripts/Makefile.lib
parent603a4ade16069851b6005591426e36edd9c465cc (diff)
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 <[email protected]>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib5
1 files changed, 5 insertions, 0 deletions
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
# ---------------------------------------------------------------------------