[coreboot] New patch to review for coreboot: 501346a build system: Add hook to postprocess classes (object lists)

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sun Nov 25 18:14:00 CET 2012

Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1910


commit 501346ada9d3b590e2b44941d41631b20a8d7d9b
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sun Nov 25 14:31:08 2012 +0100

    build system: Add hook to postprocess classes (object lists)
    This will be used to minimize the ramstage class, to avoid command
    line lengths to exceed the limit on mingw, esp. after we got rid
    of ramstage.a
    Change-Id: I80582d04476545c275e8d1d08fb52a99f58cebcc
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
 Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile b/Makefile
index b40574b..d9759d0 100644
--- a/Makefile
+++ b/Makefile
@@ -213,6 +213,10 @@ $(foreach class,$(classes),$(eval $(class)-srcs:=$(sort $($(class)-srcs))))
 src-to-obj=$(addsuffix .$(1).o, $(basename $(patsubst src/%, $(obj)/%, $($(1)-srcs))))
 $(foreach class,$(classes),$(eval $(class)-objs:=$(call src-to-obj,$(class))))
+# Call post-processors if they're defined
+$(foreach class,$(classes),\
+	$(if $(value $(class)-postprocess),$(eval $(call $(class)-postprocess,$($(class)-objs)))))
 allsrcs:=$(foreach var, $(addsuffix -srcs,$(classes)), $($(var)))
 allobjs:=$(foreach var, $(addsuffix -objs,$(classes)), $($(var)))
 alldirs:=$(sort $(abspath $(dir $(allobjs))))

More information about the coreboot mailing list