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 between uClibc and EGLIBC.
59 source "toolchain/uClibc/Config.in"
60 source "toolchain/eglibc/Config.in"
64 prompt "Build gdb" if TOOLCHAINOPTS
67 Enable if you want to build the gdb
71 prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
74 Enable large file (files > 2 GB) support
76 config SHADOW_PASSWORDS
78 prompt "Enable shadow password support?" if TOOLCHAINOPTS
81 Enable shadow password support.
85 prompt "Use software floating point by default" if TOOLCHAINOPTS
87 depends on (arm || armeb || powerpc) && !HAS_FPU
89 If your target CPU does not have a Floating Point Unit (FPU) or a
90 kernel FPU emulator, but you still wish to support floating point
91 functions, then everything will need to be compiled with soft floating
92 point support (-msoft-float).
94 Most people will answer N.
96 config TARGET_OPTIMIZATION
98 prompt "Target Optimizations" if TOOLCHAINOPTS
99 default "-O2 -pipe -march=i686 -funit-at-a-time" if TARGET_x86_mediacenter
100 default "-O2 -pipe -march=i486 -funit-at-a-time" if TARGET_x86
101 default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_rdc
102 default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if mipsel || mips
103 default "-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time" if TARGET_ixp4xx || TARGET_iop32x || TARGET_pxa || TARGET_orion
104 default "-Os -pipe -march=armv4t -mtune=arm9tdmi -funit-at-a-time" if TARGET_storm
105 default "-Os -pipe -funit-at-a-time"
107 Optimizations to use when building for the target host.
109 source "toolchain/gcc/Config.version"
110 source "toolchain/uClibc/Config.version"
111 source "toolchain/eglibc/Config.version"
112 source "toolchain/Config.version"