3 menuconfig EXTERNAL_TOOLCHAIN
5 prompt "Use external toolchain" if DEVEL
7 If enabled, OpenWrt will compile using an existing toolchain instead of compiling one
9 config NATIVE_TOOLCHAIN
11 prompt "Use host's toolchain" if DEVEL
12 depends EXTERNAL_TOOLCHAIN
15 If enabled, OpenWrt will compile using the native toolchain for your host instead of compiling one
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
29 config TOOLCHAIN_PREFIX
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
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
53 config TOOLCHAIN_BIN_PATH
55 prompt "Toolchain program path" if DEVEL
56 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
57 default "./usr/bin ./bin"
59 Specify additional directories searched for toolchain binaries (override PATH)
60 Use ./DIR for directories relative to the root above
62 config TOOLCHAIN_INC_PATH
64 prompt "Toolchain include path" if DEVEL
65 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
66 default "./usr/include ./include"
68 Specify additional directories searched for header files (override CPPFLAGS)
69 Use ./DIR for directories relative to the root above
71 config TOOLCHAIN_LIB_PATH
73 prompt "Toolchain library path" if DEVEL
74 depends EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
75 default "./usr/lib ./lib"
77 Specify additional directories searched for libraries (override LDFLAGS)
78 Use ./DIR for directories relative to the root above
83 default y if !EXTERNAL_TOOLCHAIN
85 menuconfig TOOLCHAINOPTS
86 bool "Toolchain Options" if DEVEL
87 depends NEED_TOOLCHAIN
92 prompt "Enable EABI support" if TOOLCHAINOPTS
93 default n if TARGET_gemini
94 default n if TARGET_cns21xx
97 Enable ARM EABI support
99 menuconfig EXTRA_TARGET_ARCH
101 prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
103 default y if powerpc64
106 Some builds may require a 'biarch' toolchain. This option
107 allows you to specify an additional target arch.
109 Most people will answer N here.
111 config EXTRA_TARGET_ARCH_NAME
113 default "powerpc64" if powerpc64
114 prompt "Extra architecture name" if EXTRA_TARGET_ARCH
116 Specify the cpu name (eg powerpc64 or x86_64) of the
117 additional target architecture.
119 config EXTRA_TARGET_ARCH_OPTS
121 default "-m64" if powerpc64
122 prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
124 If you're specifying an addition target architecture,
125 you'll probably need to also provide options to make
126 the compiler use this alternate arch.
128 For example, if you're building a compiler that can build
129 both powerpc and powerpc64 binaries, you'll need to
132 comment "Binary tools"
133 depends TOOLCHAINOPTS
135 source "toolchain/binutils/Config.in"
138 depends TOOLCHAINOPTS
140 source "toolchain/gcc/Config.in"
143 depends TOOLCHAINOPTS
146 prompt "C Library implementation" if TOOLCHAINOPTS
149 Select the C library implementation.
164 source "toolchain/eglibc/Config.in"
165 source "toolchain/glibc/Config.in"
166 source "toolchain/uClibc/Config.in"
169 depends TOOLCHAINOPTS
173 prompt "Build gdb" if TOOLCHAINOPTS
176 Enable if you want to build the gdb
180 prompt "Build insight-gdb" if TOOLCHAINOPTS
184 Enable if you want to build insight-gdb
188 default y if !TOOLCHAINOPTS
190 source "toolchain/gcc/Config.version"
192 source "toolchain/eglibc/Config.version"
193 source "toolchain/glibc/Config.version"
194 source "toolchain/uClibc/Config.version"
198 default "eglibc" if USE_EGLIBC
199 default "glibc" if USE_GLIBC
200 default "uClibc" if USE_UCLIBC
204 default EGLIBC_VERSION if USE_EGLIBC
205 default GLIBC_VERSION if USE_GLIBC
206 default UCLIBC_VERSION if USE_UCLIBC
210 default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
211 default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
212 default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
213 default "uclibc" if USE_UCLIBC && !EABI_SUPPORT