cf08ae9caad33e6f76c5ff3d52feb180558204dd
[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 menuconfig EXTRA_TARGET_ARCH
14         bool
15         prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
16         default y       if powerpc64
17         default n
18         help
19           Some builds may require a 'biarch' toolchain. This option
20           allows you to specify an additional target arch.
21
22           Most people will answer N here.
23
24         config EXTRA_TARGET_ARCH_NAME
25                 string
26                 default "powerpc64"     if powerpc64
27                 prompt "Extra architecture name" if EXTRA_TARGET_ARCH
28                 help
29                   Specify the cpu name (eg powerpc64 or x86_64) of the
30                   additional target architecture.
31
32         config EXTRA_TARGET_ARCH_OPTS
33                 string
34                 default "-m64"          if powerpc64
35                 prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
36                 help
37                   If you're specifying an addition target architecture,
38                   you'll probably need to also provide options to make
39                   the compiler use this alternate arch.
40
41                   For example, if you're building a compiler that can build
42                   both powerpc and powerpc64 binaries, you'll need to
43                   specify -m64 here.
44
45 comment "Binary tools"
46         depends TOOLCHAINOPTS
47
48 source "toolchain/binutils/Config.in"
49
50 comment "Compiler"
51         depends TOOLCHAINOPTS
52
53 source "toolchain/gcc/Config.in"
54
55 comment "C Library"
56         depends TOOLCHAINOPTS
57
58 choice
59         prompt "C Library implementation" if TOOLCHAINOPTS
60         default USE_UCLIBC
61         help
62           Select the C library implementation.
63
64         config USE_EGLIBC
65                 bool "Use eglibc"
66                 depends !avr32
67         
68         config USE_GLIBC
69                 bool "Use glibc"
70                 depends !avr32
71         
72         config USE_UCLIBC
73                 bool "Use uClibc"
74
75 endchoice
76
77 source "toolchain/eglibc/Config.in"
78 source "toolchain/glibc/Config.in"
79 source "toolchain/uClibc/Config.in"
80
81 comment "Debuggers"
82         depends TOOLCHAINOPTS
83
84 config GDB
85         bool
86         prompt "Build gdb" if TOOLCHAINOPTS
87         default n
88         help
89                 Enable if you want to build the gdb
90
91 config INSIGHT
92         bool
93         prompt "Build insight-gdb" if TOOLCHAINOPTS
94         select GDB
95         default n
96         help
97                 Enable if you want to build insight-gdb
98
99 config USE_UCLIBC
100         bool
101         default y if !TOOLCHAINOPTS
102
103 source "toolchain/gcc/Config.version"
104
105 source "toolchain/eglibc/Config.version"
106 source "toolchain/glibc/Config.version"
107 source "toolchain/uClibc/Config.version"
108
109 config LIBC
110         string
111         default "eglibc"  if USE_EGLIBC
112         default "glibc"   if USE_GLIBC
113         default "uClibc"  if USE_UCLIBC
114
115 config LIBC_VERSION
116         string
117         default EGLIBC_VERSION  if USE_EGLIBC
118         default GLIBC_VERSION   if USE_GLIBC
119         default UCLIBC_VERSION  if USE_UCLIBC
120
121 config TARGET_SUFFIX
122         string
123         default "gnueabi"         if (USE_EGLIBC || USE_GLIBC) && EABI_SUPPORT
124         default "gnu"             if (USE_EGLIBC || USE_GLIBC) && !EABI_SUPPORT
125         default "uclibcgnueabi"   if USE_UCLIBC && EABI_SUPPORT
126         default "uclibc"          if USE_UCLIBC && !EABI_SUPPORT
127