2 config NATIVE_TOOLCHAIN
4 prompt "Use host's toolchain" if DEVEL && BROKEN
7 If enabled, OpenWrt will compile using your existing toolchain instead of compiling one
9 menuconfig TOOLCHAINOPTS
10 bool "Toolchain Options" if DEVEL
11 depends !NATIVE_TOOLCHAIN
13 menuconfig EXTRA_TARGET_ARCH
15 prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
18 Some builds may require a 'biarch' toolchain. This option
19 allows you to specify an additional target arch.
21 Most people will answer N here.
23 config EXTRA_TARGET_ARCH_NAME
25 prompt "Extra architecture name" if EXTRA_TARGET_ARCH
27 Specify the cpu name (eg powerpc64 or x86_64) of the
28 additional target architecture.
30 config EXTRA_TARGET_ARCH_OPTS
32 prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
34 If you're specifying an addition target architecture,
35 you'll probably need to also provide options to make
36 the compiler use this alternate arch.
38 For example, if you're building a compiler that can build
39 both powerpc and powerpc64 binaries, you'll need to
42 source "toolchain/binutils/Config.in"
43 source "toolchain/gcc/Config.in"
46 prompt "LIBC implementation" if TOOLCHAINOPTS
49 Select the LIBC implementation.
66 source "toolchain/eglibc/Config.in"
67 source "toolchain/glibc/Config.in"
68 source "toolchain/uClibc/Config.in"
72 prompt "Build gdb" if TOOLCHAINOPTS
75 Enable if you want to build the gdb
79 prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
82 Enable large file (files > 2 GB) support
84 config SHADOW_PASSWORDS
86 prompt "Enable shadow password support?" if TOOLCHAINOPTS
89 Enable shadow password support.
93 prompt "Use software floating point by default" if TOOLCHAINOPTS
95 depends on (arm || armeb || powerpc) && !HAS_FPU
97 If your target CPU does not have a Floating Point Unit (FPU) or a
98 kernel FPU emulator, but you still wish to support floating point
99 functions, then everything will need to be compiled with soft floating
100 point support (-msoft-float).
102 Most people will answer N.
104 config TARGET_OPTIMIZATION
106 prompt "Target Optimizations" if TOOLCHAINOPTS
107 default "-O2 -pipe -march=i686 -funit-at-a-time" if TARGET_x86_mediacenter
108 default "-O2 -pipe -march=i486 -funit-at-a-time" if TARGET_x86
109 default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_rdc
110 default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_uml && i386
111 default "-Os -pipe -march=athlon64 -funit-at-a-time" if TARGET_uml && x86_64
112 default "-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time" if TARGET_ar71xx
113 default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if mipsel || mips
114 default "-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time" if TARGET_ixp4xx || TARGET_iop32x || TARGET_pxa || TARGET_orion
115 default "-Os -pipe -march=armv4 -mtune=arm9tdmi -funit-at-a-time" if TARGET_storm
116 default "-Os -pipe -funit-at-a-time"
118 Optimizations to use when building for the target host.
122 default y if !TOOLCHAINOPTS
124 source "toolchain/gcc/Config.version"
126 source "toolchain/eglibc/Config.version"
127 source "toolchain/glibc/Config.version"
128 source "toolchain/uClibc/Config.version"
132 default "eglibc" if USE_EGLIBC
133 default "glibc" if USE_GLIBC
134 default "uClibc" if USE_UCLIBC
138 default EGLIBC_VERSION if USE_EGLIBC
139 default GLIBC_VERSION if USE_GLIBC
140 default UCLIBC_VERSION if USE_UCLIBC
144 default "gnueabi" if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
145 default "gnu" if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
146 default "uclibcgnueabi" if USE_UCLIBC && EABI_SUPPORT
147 default "uclibc" if USE_UCLIBC && !EABI_SUPPORT