[include] autotools.mk: touch NEWS, AUTHORS, COPYING and ChangeLog, automake wants...
[openwrt.git] / toolchain / Config.in
1 #
2
3 menuconfig EXTERNAL_TOOLCHAIN
4 bool
5 prompt "Use external toolchain" if DEVEL
6 help
7 If enabled, OpenWrt will compile using an existing toolchain instead of compiling one
8
9 config NATIVE_TOOLCHAIN
10 bool
11 prompt "Use host's toolchain" if DEVEL
12 depends EXTERNAL_TOOLCHAIN
13 select NO_STRIP
14 help
15 If enabled, OpenWrt will compile using the native toolchain for your host instead of compiling one
16
17 config TARGET_NAME
18 string
19 prompt "Target name" if DEVEL
20 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
21 default "arm-unknown-linux-gnu" if arm
22 default "armeb-unknown-linux-gnu" if armeb
23 default "i486-unknown-linux-gnu" if i386
24 default "mips-unknown-linux-gnu" if mips
25 default "mipsel-unknown-linux-gnu" if mipsel
26 default "powerpc-unknown-linux-gnu" if powerpc
27 default "x86_64-unknown-linux-gnu" if x86_64
28
29 config TOOLCHAIN_PREFIX
30 string
31 prompt "Toolchain prefix" if DEVEL
32 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
33 default "arm-unknown-linux-gnu-" if arm
34 default "armeb-unknown-linux-gnu-" if armeb
35 default "i486-unknown-linux-gnu-" if i386
36 default "mips-unknown-linux-gnu-" if mips
37 default "mipsel-unknown-linux-gnu-" if mipsel
38 default "powerpc-unknown-linux-gnu-" if powerpc
39 default "x86_64-unknown-linux-gnu-" if x86_64
40
41 config TOOLCHAIN_ROOT
42 string
43 prompt "Toolchain root" if DEVEL
44 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
45 default "/opt/cross/arm-unknown-linux-gnu" if arm
46 default "/opt/cross/armeb-unknown-linux-gnu" if armeb
47 default "/opt/cross/i486-unknown-linux-gnu" if i386
48 default "/opt/cross/mips-unknown-linux-gnu" if mips
49 default "/opt/cross/mipsel-unknown-linux-gnu" if mipsel
50 default "/opt/cross/powerpc-unknown-linux-gnu" if powerpc
51 default "/opt/cross/x86_64-unknown-linux-gnu" if x86_64
52
53 config TOOLCHAIN_BIN_PATH
54 string
55 prompt "Toolchain program path" if DEVEL
56 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
57 default "./usr/bin ./bin"
58 help
59 Specify additional directories searched for toolchain binaries (override PATH)
60 Use ./DIR for directories relative to the root above
61
62 config TOOLCHAIN_INC_PATH
63 string
64 prompt "Toolchain include path" if DEVEL
65 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
66 default "./usr/include ./include"
67 help
68 Specify additional directories searched for header files (override CPPFLAGS)
69 Use ./DIR for directories relative to the root above
70
71 config TOOLCHAIN_LIB_PATH
72 string
73 prompt "Toolchain library path" if DEVEL
74 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
75 default "./usr/lib ./lib"
76 help
77 Specify additional directories searched for libraries (override LDFLAGS)
78 Use ./DIR for directories relative to the root above
79
80 config NEED_TOOLCHAIN
81 bool
82 depends DEVEL
83 default y if !EXTERNAL_TOOLCHAIN
84
85 menuconfig TOOLCHAINOPTS
86 bool "Toolchain Options" if DEVEL
87 depends NEED_TOOLCHAIN
88
89 config EABI_SUPPORT
90 bool
91 depends arm||armeb
92 prompt "Enable EABI support" if TOOLCHAINOPTS
93 default n if TARGET_gemini
94 default y
95 help
96 Enable ARM EABI support
97
98 menuconfig EXTRA_TARGET_ARCH
99 bool
100 prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
101 depends !sparc
102 default y if powerpc64
103 default n
104 help
105 Some builds may require a 'biarch' toolchain. This option
106 allows you to specify an additional target arch.
107
108 Most people will answer N here.
109
110 config EXTRA_TARGET_ARCH_NAME
111 string
112 default "powerpc64" if powerpc64
113 prompt "Extra architecture name" if EXTRA_TARGET_ARCH
114 help
115 Specify the cpu name (eg powerpc64 or x86_64) of the
116 additional target architecture.
117
118 config EXTRA_TARGET_ARCH_OPTS
119 string
120 default "-m64" if powerpc64
121 prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
122 help
123 If you're specifying an addition target architecture,
124 you'll probably need to also provide options to make
125 the compiler use this alternate arch.
126
127 For example, if you're building a compiler that can build
128 both powerpc and powerpc64 binaries, you'll need to
129 specify -m64 here.
130
131 comment "Binary tools"
132 depends TOOLCHAINOPTS
133
134 source "toolchain/binutils/Config.in"
135
136 comment "Compiler"
137 depends TOOLCHAINOPTS
138
139 source "toolchain/gcc/Config.in"
140
141 comment "C Library"
142 depends TOOLCHAINOPTS
143
144 choice
145 prompt "C Library implementation" if TOOLCHAINOPTS
146 default USE_UCLIBC
147 help
148 Select the C library implementation.
149
150 config USE_EGLIBC
151 bool "Use eglibc"
152 depends !avr32
153
154 config USE_GLIBC
155 bool "Use glibc"
156 depends !avr32
157
158 config USE_UCLIBC
159 bool "Use uClibc"
160
161 endchoice
162
163 source "toolchain/eglibc/Config.in"
164 source "toolchain/glibc/Config.in"
165 source "toolchain/uClibc/Config.in"
166
167 comment "Debuggers"
168 depends TOOLCHAINOPTS
169
170 config GDB
171 bool
172 prompt "Build gdb" if TOOLCHAINOPTS
173 default n
174 help
175 Enable if you want to build the gdb
176
177 config INSIGHT
178 bool
179 prompt "Build insight-gdb" if TOOLCHAINOPTS
180 select GDB
181 default n
182 help
183 Enable if you want to build insight-gdb
184
185 config USE_UCLIBC
186 bool
187 default y if !TOOLCHAINOPTS
188
189 source "toolchain/gcc/Config.version"
190
191 source "toolchain/eglibc/Config.version"
192 source "toolchain/glibc/Config.version"
193 source "toolchain/uClibc/Config.version"
194
195 config LIBC
196 string
197 default "eglibc" if USE_EGLIBC
198 default "glibc" if USE_GLIBC
199 default "uClibc" if USE_UCLIBC
200
201 config LIBC_VERSION
202 string
203 default EGLIBC_VERSION if USE_EGLIBC
204 default GLIBC_VERSION if USE_GLIBC
205 default UCLIBC_VERSION if USE_UCLIBC
206
207 config TARGET_SUFFIX
208 string
209 default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
210 default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
211 default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
212 default "uclibc" if USE_UCLIBC && !EABI_SUPPORT
213
This page took 0.057098 seconds and 5 git commands to generate.