[coreboot] Patch set updated for coreboot: 13b6a88 Prevent multiple inclusions of object files and rules

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Fri Oct 28 20:42:20 CEST 2011

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


commit 13b6a887ba3b4c28b1695bdb1974dc6a6fa65cd8
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Tue Oct 25 14:32:21 2011 -0700

    Prevent multiple inclusions of object files and rules
    This removes 54 make warnings from the build
    Change-Id: I94ac9875526febe2f95334c1c3971641c1d27f8f
    Signed-off-by: Stefan Reinauer <reinauer at google.com>
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index c543897..f2277d1 100644
--- a/Makefile
+++ b/Makefile
@@ -204,6 +204,9 @@ evaluate_subdirs= \
 $(eval $(call evaluate_subdirs))
+# Eliminate duplicate mentions of source files in a class
+$(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))))

More information about the coreboot mailing list