[coreboot-gerrit] New patch to review for coreboot: 65eac78 build system: Allow using .a archives as source

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Mon Apr 27 18:23:21 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10001

-gerrit

commit 65eac78dc6e66110d139ec448e749d576bfd2852
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Mon Apr 27 18:01:12 2015 +0200

    build system: Allow using .a archives as source
    
    Change-Id: I1d61971f1458ca7e4257abb6a9c2aa15ac08e1d0
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
 Makefile.inc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/Makefile.inc b/Makefile.inc
index b67f145..e9cb920 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -150,6 +150,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



More information about the coreboot-gerrit mailing list