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 source "toolchain/binutils/Config.in"
14 source "toolchain/gcc/Config.in"
18 prompt "Build gdb" if TOOLCHAINOPTS
21 Enable if you want to build the gdb
25 prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
28 Enable large file (files > 2 GB) support
32 prompt "Enable full C99 math support?" if TOOLCHAINOPTS
35 Enable if you need full C99 math in libm
39 prompt "Use software floating point by default" if TOOLCHAINOPTS
41 depends on arm || armeb || powerpc
43 If your target CPU does not have a Floating Point Unit (FPU) or a
44 kernel FPU emulator, but you still wish to support floating point
45 functions, then everything will need to be compiled with soft floating
46 point support (-msoft-float).
48 Most people will answer N.
50 config TARGET_OPTIMIZATION
52 prompt "Target Optimizations" if TOOLCHAINOPTS
53 default "-O2 -pipe -march=i686 -funit-at-a-time" if TARGET_x86_mediacenter
54 default "-O2 -pipe -march=i486 -funit-at-a-time" if TARGET_x86
55 default "-Os -pipe -march=i486 -funit-at-a-time" if TARGET_rdc
56 default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if mipsel || mips
57 default "-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time" if armeb
58 default "-Os -pipe -funit-at-a-time"
60 Optimizations to use when building for the target host.
62 source "toolchain/gcc/Config.version"