Patrick Georgi (pgeorgi@google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10800
-gerrit
commit 4273fc8230918026492ecfb4baada4df6023d878 Author: Patrick Georgi pgeorgi@chromium.org Date: Mon Jul 6 09:04:42 2015 +0000
libpayload: Add compiler switch
clang is totally untested, but it mirrors coreboot now.
Change-Id: I0e13ff8bba2007159a4a795ca07d187504b606b2 Signed-off-by: Patrick Georgi pgeorgi@chromium.org --- payloads/libpayload/Kconfig | 23 +++++++++++++++++++++++ payloads/libpayload/util/xcompile/xcompile | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/payloads/libpayload/Kconfig b/payloads/libpayload/Kconfig index 77d4f6b..9f02ec9 100644 --- a/payloads/libpayload/Kconfig +++ b/payloads/libpayload/Kconfig @@ -55,6 +55,29 @@ config DEVELOPER Prompt for developer options. These options are only interesting for libpayload developers.
+choice + prompt "Compiler to use" + default COMPILER_GCC + help + This option allows you to select the compiler used for building + coreboot. + +config COMPILER_GCC + bool "GCC" + help + Use the GNU Compiler Collection (GCC) to build coreboot. + + For details see http://gcc.gnu.org. + +config COMPILER_LLVM_CLANG + bool "LLVM/clang" + help + Use LLVM/clang to build coreboot. + + For details see http://clang.llvm.org. + +endchoice + config REMOTEGDB bool "Remote GDB stub" default n diff --git a/payloads/libpayload/util/xcompile/xcompile b/payloads/libpayload/util/xcompile/xcompile index 1af02ad..b6759a9 100755 --- a/payloads/libpayload/util/xcompile/xcompile +++ b/payloads/libpayload/util/xcompile/xcompile @@ -182,7 +182,7 @@ report_arch_toolchain() { # elf${TWIDTH}-${TBFDARCH} toolchain (${GCC}) ARCH_SUPPORTED+=${TARCH} SUBARCH_SUPPORTED+=${TSUPP-${TARCH}} -ifeq ($(CONFIG_COMPILER_GCC),y) +ifeq ($(CONFIG_LP_COMPILER_GCC),y) CC_${TARCH}:=${GCC} CFLAGS_${TARCH}:=${CFLAGS_GCC} COMPILER_RT_${TARCH}:=${CC_RT_GCC}