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