[coreboot-gerrit] Patch set updated for coreboot: f35ed82 build system: re-enable clang use

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Wed May 14 21:13:14 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 f35ed826e4b1ab4c949e7744c1e4fb26649c2c70
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 | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index c9648c0..9a96992 100644
--- a/Makefile
+++ b/Makefile
@@ -117,15 +117,19 @@ else
 
 include $(HAVE_DOTCONFIG)
 
-include toolchain.inc
-
 ifneq ($(INNER_SCANBUILD),y)
 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
+CC_i386:=clang -target i386-elf -m32 -mno-mmx -mno-sse -no-integrated-as
+CC_armv7:=clang -target armv7-eabi -no-integrated-as -ccc-gcc-name $(CC_armv7)
+CC_aarch64:=clang -target aarch64-eabi -no-integrated-as -ccc-gcc-name $(CC_aarch64)
 HOSTCC:=clang
 endif
 endif
 
+include toolchain.inc
+
 ifeq ($(CONFIG_CCACHE),y)
 CCACHE:=$(word 1,$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH)))))
 ifeq ($(CCACHE),)



More information about the coreboot-gerrit mailing list