summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--payloads/libpayload/Kconfig18
-rwxr-xr-xpayloads/libpayload/util/xcompile/xcompile2
2 files changed, 19 insertions, 1 deletions
diff --git a/payloads/libpayload/Kconfig b/payloads/libpayload/Kconfig
index 77d4f6b86b..dee970c778 100644
--- a/payloads/libpayload/Kconfig
+++ b/payloads/libpayload/Kconfig
@@ -55,6 +55,24 @@ 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.
+
+config COMPILER_GCC
+ bool "GCC"
+ help
+ Use the GNU Compiler Collection (GCC).
+
+config COMPILER_LLVM_CLANG
+ bool "LLVM/clang"
+ help
+ Use LLVM/clang.
+
+endchoice
+
config REMOTEGDB
bool "Remote GDB stub"
default n
diff --git a/payloads/libpayload/util/xcompile/xcompile b/payloads/libpayload/util/xcompile/xcompile
index 1af02ad28a..b6759a9b98 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}