add secret option to use host's toolchain when native compiling
[openwrt-10.03/.git] / toolchain / Config.in
1 #
2 config NATIVE_TOOLCHAIN
3         bool
4         prompt "Use host's toolchain" if DEVEL && BROKEN
5         default n
6         help
7                 If enabled, OpenWrt will compile using your existing toolchain instead of compiling one
8
9 menuconfig TOOLCHAINOPTS
10         bool "Toolchain Options" if DEVEL
11         depends !NATIVE_TOOLCHAIN
12
13 source "toolchain/binutils/Config.in"
14 source "toolchain/gcc/Config.in"
15
16 config GDB
17         bool
18         prompt "Build gdb" if TOOLCHAINOPTS
19         default n
20         help
21                 Enable if you want to build the gdb
22
23 config ENABLE_MULTILIB
24         bool
25         prompt "Enable multilib support?" if TOOLCHAINOPTS
26         default n
27         help
28             If you want multilib enabled, enable this...
29
30 config LARGEFILE
31         bool
32         prompt "Enable large file (files > 2 GB) support?" if TOOLCHAINOPTS
33         depends on !cris
34         default y
35         help
36             Enable large file (files > 2 GB) support
37
38 config SOFT_FLOAT
39         bool
40         prompt "Use software floating point by default" if TOOLCHAINOPTS
41         default n
42         depends on arm || mips || powerpc
43         help
44           If your target CPU does not have a Floating Point Unit (FPU) or a
45           kernel FPU emulator, but you still wish to support floating point
46           functions, then everything will need to be compiled with soft floating
47           point support (-msoft-float).
48
49           Most people will answer N.
50
51 config TARGET_OPTIMIZATION
52         string
53         prompt "Target Optimizations" if TOOLCHAINOPTS
54         default "-Os -pipe -march=i486 -funit-at-a-time" if i386
55         default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" if mipsel || mips
56         default "-Os -pipe -mcpu=xscale -funit-at-a-time" if armeb
57         default "-Os -pipe -funit-at-a-time"
58         help
59           Optimizations to use when building for the target host.
60
61 source "toolchain/gcc/Config.version"