aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2016-01-23 03:23:23 +0100
committerPatrick Georgi <pgeorgi@google.com>2016-01-25 14:24:10 +0100
commit10b7ceface928dec6cb06515c983ebfb73c0cdfe (patch)
tree0e046854a7e401f99a2f9eaf571395db30df0e66
parent2bb574e52cc2fa2295ee1f81c417c78ca9d62cc4 (diff)
Makefile: Don't copy thin archives around
We can't just copy archives around as they may be thin archives which contain relative paths. Using ar to create another thin archive should result in the same archive with fixed paths. Tested by verifying that the resulting coreboot.rom files didn't change for all of Jenkins' abuild configurations. Change-Id: Ic5743da2f4b5eb246fafd02181d66c5d40e7f00c Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/13179 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
-rw-r--r--Makefile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 89f02d41d5..8bf0ca525d 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -179,8 +179,8 @@ endef
define generic-objs_a_template_gen
de$(EMPTY)fine $(1)-objs_a_template
$$(call src-to-obj,$1,$$(1).a): $$(1).a
- @printf " CP $$$$(subst $$$$(obj)/,,$$$$(@))\n"
- cp $$$$< $$$$@.tmp
+ @printf " AR $$$$(subst $$$$(obj)/,,$$$$(@))\n"
+ $$$$(AR_$(1)) rcsT $$$$@.tmp $$$$<
mv $$$$@.tmp $$$$@
en$(EMPTY)def
endef