diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-03-16 01:17:19 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-16 01:17:19 +0000 |
commit | 23d89ccfd2444c9784e6a27256012f71f8e609dd (patch) | |
tree | 890f046424f0ef98c7872cc9420bec4fdee1cd73 /Makefile | |
parent | 68a564f7ac3975de5ce6e6d0f65db63bbe7d2d64 (diff) |
Make CLANG selectable in Kconfig
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -22,8 +22,10 @@ ifeq ($(INNER_SCANBUILD),y) CC_real:=$(CC) endif + $(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile > .xcompile))) include .xcompile + ifeq ($(INNER_SCANBUILD),y) CC:=$(CC_real) HOSTCC:=$(CC_real) --hostcc @@ -76,6 +78,13 @@ else include $(top)/.config +ifneq ($(INNER_SCANBUILD),y) +ifeq ($(CONFIG_COMPILER_LLVM_CLANG),y) +CC:=clang -m32 +HOSTCC:=clang +endif +endif + ARCHDIR-$(CONFIG_ARCH_X86) := i386 ARCHDIR-$(CONFIG_ARCH_POWERPC) := ppc |