[coreboot-gerrit] Patch set updated for coreboot: 1d4bf09 build system: create .xcompile dependency
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Fri Jul 11 18:31:12 CEST 2014
Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6255
-gerrit
commit 1d4bf098d85a3a27c464610d3639d5d777406e52
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Thu Jul 10 21:06:04 2014 +0200
build system: create .xcompile dependency
It's probably safe to say that .xcompile needs an update if
util/xcompile/xcompile changed, so tell make about this
dependency.
Updates are honored immediately due to GNU make's feature of
reinterpreting everything when an included file changes. See "How
Makefiles Are Remade" in the GNU make documentation for details.
Change-Id: Ide2f028eaddcee66028c6403688cc83e1622fa6b
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
Makefile | 4 +++-
util/xcompile/xcompile | 0
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c8cad4f..2ee6a96 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,9 @@
## SUCH DAMAGE.
##
-$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
+.xcompile: util/xcompile/xcompile
+ -A=`mktemp $@.XXXXXX`; $< $(XGCCPATH) > $$A && cmp $$A $@ > /dev/null 2> /dev/null || mv $$A $@ 2> /dev/null ; rm -f $$A
+
include .xcompile
export top := $(CURDIR)
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
old mode 100644
new mode 100755
More information about the coreboot-gerrit
mailing list