aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2015-04-27 18:01:12 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-04-28 10:19:49 +0200
commitef345c26a73e64c4faa07026c300429e51228b9e (patch)
treec0a8266ca23256f820b53f62a71b95f49c94a590 /Makefile.inc
parente993ec7948d874d81c984323b5b00389420a4e65 (diff)
downloadcoreboot-ef345c26a73e64c4faa07026c300429e51228b9e.tar.gz
coreboot-ef345c26a73e64c4faa07026c300429e51228b9e.tar.xz
coreboot-ef345c26a73e64c4faa07026c300429e51228b9e.zip
build system: Allow using .a archives as source
Change-Id: I1d61971f1458ca7e4257abb6a9c2aa15ac08e1d0 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: http://review.coreboot.org/10001 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
index fee227cd0..94513d2bd 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -149,6 +149,16 @@ $$(call src-to-obj,$1,$$(1).ld): $$(1).ld $(obj)/config.h
en$(EMPTY)def
endef
+# Add handler to deal with archives
+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
+ mv $$$$@.tmp $$$$@
+en$(EMPTY)def
+endef
+
# Add handler to add no rules for manual files
define generic-objs_manual_template_gen
# do nothing