[backfire] toolchain/binutils: remove obsolete 2.20 version
[openwrt/svn-archive/archive.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 y
94 help
95 Enable ARM EABI support
96
97 menuconfig EXTRA_TARGET_ARCH
98 bool
99 prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
100 default y if powerpc64
101 default n
102 help
103 Some builds may require a 'biarch' toolchain. This option
104 allows you to specify an additional target arch.
105
106 Most people will answer N here.
107
108 config EXTRA_TARGET_ARCH_NAME
109 string
110 default "powerpc64" if powerpc64
111 prompt "Extra architecture name" if EXTRA_TARGET_ARCH
112 help
113 Specify the cpu name (eg powerpc64 or x86_64) of the
114 additional target architecture.
115
116 config EXTRA_TARGET_ARCH_OPTS
117 string
118 default "-m64" if powerpc64
119 prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
120 help
121 If you're specifying an addition target architecture,
122 you'll probably need to also provide options to make
123 the compiler use this alternate arch.
124
125 For example, if you're building a compiler that can build
126 both powerpc and powerpc64 binaries, you'll need to
127 specify -m64 here.
128
129 comment "Binary tools"
130 depends TOOLCHAINOPTS
131
132 source "toolchain/binutils/Config.in"
133
134 comment "Compiler"
135 depends TOOLCHAINOPTS
136
137 source "toolchain/gcc/Config.in"
138
139 comment "C Library"
140 depends TOOLCHAINOPTS
141
142 choice
143 prompt "C Library implementation" if TOOLCHAINOPTS
144 default USE_UCLIBC
145 help
146 Select the C library implementation.
147
148 config USE_EGLIBC
149 bool "Use eglibc"
150 depends !avr32
151
152 config USE_GLIBC
153 bool "Use glibc"
154 depends !avr32
155
156 config USE_UCLIBC
157 bool "Use uClibc"
158
159 endchoice
160
161 source "toolchain/eglibc/Config.in"
162 source "toolchain/glibc/Config.in"
163 source "toolchain/uClibc/Config.in"
164
165 comment "Debuggers"
166 depends TOOLCHAINOPTS
167
168 config GDB
169 bool
170 prompt "Build gdb" if TOOLCHAINOPTS
171 default n
172 help
173 Enable if you want to build the gdb
174
175 config INSIGHT
176 bool
177 prompt "Build insight-gdb" if TOOLCHAINOPTS
178 select GDB
179 default n
180 help
181 Enable if you want to build insight-gdb
182
183 config USE_UCLIBC
184 bool
185 default y if !TOOLCHAINOPTS
186
187 source "toolchain/gcc/Config.version"
188
189 source "toolchain/eglibc/Config.version"
190 source "toolchain/glibc/Config.version"
191 source "toolchain/uClibc/Config.version"
192
193 config LIBC
194 string
195 default "eglibc" if USE_EGLIBC
196 default "glibc" if USE_GLIBC
197 default "uClibc" if USE_UCLIBC
198
199 config LIBC_VERSION
200 string
201 default EGLIBC_VERSION if USE_EGLIBC
202 default GLIBC_VERSION if USE_GLIBC
203 default UCLIBC_VERSION if USE_UCLIBC
204
205 config TARGET_SUFFIX
206 string
207 default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
208 default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
209 default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
210 default "uclibc" if USE_UCLIBC && !EABI_SUPPORT
211