summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-27 18:22:53 +1000
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-06-30 06:31:27 +0200
commit2c342f508065db05f31ac04a9dee934759d7c039 (patch)
treeb9c2c73df4239c2b0f8e97971f8206d87cf737d0
parent480790b593607c5e5d472c1aa45813b08f580cf9 (diff)
Makefile.inc: Detect if a working clang binary exists before set
Let us not assume the 'clang' binary exists and is working just because the user selected it in .config Change-Id: Iad3cbf4a7cda0e1c4d435fbe426b7247233973ea Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6141 Tested-by: build bot (Jenkins) Reviewed-by: Idwer Vollering <vidwer@gmail.com>
-rw-r--r--Makefile.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 7d1c4ae20e..a6a8cbe33e 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -30,7 +30,7 @@ ifneq ($(NOCOMPILE),1)
ifneq ($(CONFIG_ANY_TOOLCHAIN),y)
_toolchain=$(shell $(CC_x86_32) -v 2>&1 |grep -q "gcc version .*coreboot toolchain" && echo coreboot)
ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
-_toolchain=coreboot
+_toolchain=$(shell $(CC_x86_32) -v 2>&1 |grep -q "clang version" && echo coreboot)
endif
ifneq ($(_toolchain),coreboot)
$(error Please use the coreboot toolchain (or prove that your toolchain works))