[coreboot-gerrit] New patch to review for coreboot: 6c8fafb build system: avoid warning about missing .xcompile
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Sat Jul 19 11:16:46 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/6305
-gerrit
commit 6c8fafb89915c7a7e4a2ab862f8e44c080fdd787
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Sat Jul 19 10:55:30 2014 +0200
build system: avoid warning about missing .xcompile
That file will be generated, but not before make managed
to complain about it.
So let's just generate it if missing - it won't hurt the
dependency tracking some lines later which is looking at
time stamps.
Change-Id: I615f38457eb27a8ffb4352b5234e262ee95d84ac
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index fad8103..a55ad67 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,10 @@
## SUCH DAMAGE.
##
+# in addition to the dependency below, create the file if it doesn't exist
+# to silence stupid warnings about a file that would be generated anyway.
+$(if $(wildcard .xcompile),,$(eval $(shell util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
+
.xcompile: util/xcompile/xcompile
A=`mktemp $@.XXXXXX`; $< $(XGCCPATH) > $$A && mv $$A $@ 2> /dev/null
More information about the coreboot-gerrit
mailing list