diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-04-27 18:01:12 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-28 10:19:49 +0200 |
commit | ef345c26a73e64c4faa07026c300429e51228b9e (patch) | |
tree | c0a8266ca23256f820b53f62a71b95f49c94a590 | |
parent | e993ec7948d874d81c984323b5b00389420a4e65 (diff) | |
download | coreboot-staging-ef345c26a73e64c4faa07026c300429e51228b9e.zip coreboot-staging-ef345c26a73e64c4faa07026c300429e51228b9e.tar.gz |
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>
-rw-r--r-- | Makefile.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc index fee227c..94513d2 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 |