summaryrefslogtreecommitdiff
path: root/kconfig/toolchain.kconfig
blob: 4e1720b994193b9e6ad63ed3915c496a5479065a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
################################################################################
# Embtoolkit
# Copyright(C) 2009-2013 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
#
# \file         toolchain.kconfig
# \brief	toolchain.kconfig of Embtoolkit
# \author       Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date         July 2009
################################################################################

menu "C library to use"
choice
	prompt "Choose which C library to use"
	help
	 Choose here which C library your toolchain will use.
	config EMBTK_CLIB_EGLIBC
		bool "eglibc"
		help
		 EGLIBC is suitable for source and binary compatibility with
		 glibc, but care is also taken to satisfy embedded systems
		 constraints.
		 see http://www.eglibc.org for more information about eglibc.
	config EMBTK_CLIB_UCLIBC
		bool "uClibc"
		help
		 uClibc is suitable for high memory constraints and MMU-less
		 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


if EMBTK_CLIB_EGLIBC
source "kconfig/eglibc.kconfig"
endif

if EMBTK_CLIB_UCLIBC
source "kconfig/uclibc-kconfigs/embtk-uclibc.kconfig"
endif

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

comment "------------------------------------------"
comment "--- GCC versions"
comment "------------------------------------------"
source kconfig/gcc.kconfig

if EMBTK_LLVM_ONLY_TOOLCHAIN || EMBTK_GCC_AND_LLVM_TOOLCHAIN
comment "------------------------------------------"
comment "--- clang/llvm versions"
comment "------------------------------------------"
source kconfig/llvm/clang-llvm.kconfig
source kconfig/llvm/llvm.kconfig
source kconfig/llvm/clang.kconfig
endif

comment "------------------------------------------"
comment "--- Additional programming languages"
comment "------------------------------------------"
source kconfig/compiler-options.kconfig

endmenu

menu "Binutils"
source "kconfig/binutils.kconfig"
endmenu

menu "Linux kernel headers"
source "kconfig/linux.kconfig"
endmenu

#
# GMP
#
source kconfig/gmp.kconfig

#
# MPFR
#
source kconfig/mpfr.kconfig

#
# MPC
#
source kconfig/mpc.kconfig

#
# ccache
#
source kconfig/ccache.kconfig

#
# Autotools
#
source kconfig/m4.kconfig
source kconfig/libtool.kconfig
source kconfig/autoconf.kconfig
source kconfig/automake.kconfig

#
# pkg-config
#
source kconfig/pkgconfig.kconfig

#
# fakeroot
#
source kconfig/fakeroot.kconfig

#
# gperf for host
#
source kconfig/gperf_host.kconfig

#
# libelf
#
source packages/misc/libelf/libelf.kconfig

#
# Select of optional features
#
config EMBTK_TOOLCHAIN_PREDEP_GPERF_HOST
	bool
	default y	if KEMBTK_EGLIBC_OPTION_EGLIBC_LOCALE_CODE
	select EMBTK_HOST_HAVE_GPERF
	help
		select gperf for host if needed to build the toolchain.