summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-15 12:53:45 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-12-15 12:53:45 +0100
commit4c6765266135e1733876e8e0071ecd2af0922f1b (patch)
tree1252ab8e5b64550767f79763ad79224b339bc44c
parent7e8685dfb415f737a4b3a539e58711281f954b13 (diff)
downloadembtoolkit-4c6765266135e1733876e8e0071ecd2af0922f1b.tar.gz
embtoolkit-4c6765266135e1733876e8e0071ecd2af0922f1b.tar.bz2
embtoolkit-4c6765266135e1733876e8e0071ecd2af0922f1b.tar.xz
Toolchain: Add initial multi cross compilers infrastructure in kconfig
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--kconfig/toolchain.kconfig56
1 files changed, 52 insertions, 4 deletions
diff --git a/kconfig/toolchain.kconfig b/kconfig/toolchain.kconfig
index 2ac5776..02ab609 100644
--- a/kconfig/toolchain.kconfig
+++ b/kconfig/toolchain.kconfig
@@ -42,6 +42,8 @@ choice
embedded systems. But compatibility with glibc is not guaranted
and even between different uClibc versions.
see http://www.uclibc.org for more information about uclibc.
+
+
endchoice
@@ -55,11 +57,57 @@ endif
endmenu
-menu "GCC compiler"
-source "kconfig/gcc.kconfig"
-endmenu
+menu "Cross Compiler environment"
+choice
+ prompt "Cross Compiler environment setup"
+ help
+ Choose your cross compiler environment setup combination between
+ clang/llvm and GCC.
+
+ config EMBTK_GCC_ONLY_TOOLCHAIN
+ bool "GCC only"
+ help
+ Choose this configuration if you want to use only traditional
+ GCC cross compiler environment.
+
+ config EMBTK_LLVM_ONLY_TOOLCHAIN
+ bool "clang/llvm only (experimental)"
+ help
+ Choose this configuration if you want to use only clang/llvm
+ cross compiler environment.
+ With this configuration:
+ * All userspace packages will use clang as compiler.
+ * A bare metal gcc compiler will still be built, but you will
+ be able to only build linux kernel/u-boot etc. with this gcc.
+
+ config EMBTK_GCC_AND_LLVM_TOOLCHAIN
+ bool "clang/llvm and GCC"
+ help
+ With this configuration you will have full clang/llvm and GGC
+ built and available to build your userspace packages.
+
+endchoice
+
+choice
+ prompt "Default cross compiler to build packages"
+ depends on EMBTK_GCC_AND_LLVM_TOOLCHAIN
+ help
+ Choose which cross compiler environment to use by default to build
+ packages.
+
+ config EMBTK_LLVM_DEFAULT_TOOLCHAIN
+ bool "clang/llvm"
+ help
+ Userspace packages will be built with clang by default.
+
+ config EMBTK_GCC_DEFAULT_TOOLCHAIN
+ bool "GCC"
+ help
+ Userspace packages will be built with clang by default.
+
+endchoice
-menu "LLVM/clang compiler infrastructure"
+source kconfig/gcc.kconfig
source kconfig/llvm/llvm.kconfig
source kconfig/llvm/clang.kconfig
source kconfig/llvm/compiler-rt.kconfig