[coreboot-gerrit] Patch set updated for coreboot: 57c2f2e build system: re-enable clang use
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Sat May 17 21:39:26 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/5747
-gerrit
commit 57c2f2e916debe5117a2713e3660330391686a85
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Wed May 14 21:05:35 2014 +0200
build system: re-enable clang use
Change-Id: I6e07fdec449d0b259d77986f65a60aa36d367cc8
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
Makefile | 26 +++++++++++++++++++++++---
1 file changed, 23 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index cc2d27c..9e91a24 100644
--- a/Makefile
+++ b/Makefile
@@ -107,13 +107,33 @@ else
include $(HAVE_DOTCONFIG)
-include toolchain.inc
-
ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y)
-CC:=clang -m32 -mno-mmx -mno-sse -no-integrated-as
+# FIXME: CC_* contains more than one word and quotes don't work either
+# armv7/aarch64 won't build right now
+CFLAGS_x86_32 = -target i386-elf -m32
+CC_x86_32:=clang
+
+ifneq ($(CONFIG_MMX),y)
+CFLAGS_x86_32 += -mno-mmx
+endif
+
+ifneq ($(CONFIG_SSE),y)
+CFLAGS_x86_32 += -mno-sse
+endif
+
+CFLAGS_armv7 = -target armv7-eabi -ccc-gcc-name $(CC_armv7)
+CC_armv7:=clang
+
+CFLAGS_aarch64 = -target aarch64-eabi -ccc-gcc-name $(CC_aarch64)
+CC_aarch64:=clang
+
+CFLAGS_common += -no-integrated-as
+
HOSTCC:=clang
endif
+include toolchain.inc
+
strip_quotes = $(subst ",,$(subst \",,$(1)))
# The primary target needs to be here before we include the
More information about the coreboot-gerrit
mailing list