summaryrefslogtreecommitdiffstats
path: root/rules/crosstool.in
blob: 98218888d1b0ad1f6e0ace3025f6b4672e560442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#
# rules/crosstool.in
#

comment "Crosstool"

config CROSSTOOL
	bool
	prompt "crosstool: Cross Toolchain Build Suite"
	default n
	help
	  Crosstool is a canned build script which is being used to build
	  the cross compiler and GNU binutils. Historically PTXdist had 
	  it's own variant of building cross tools, but as Crosstool is 
	  the most whidespread community project we use it now. 

	  The following menu entries are being used to select the details
	  of the crosstool configuration. 

choice
	prompt "version"
		depends on CROSSTOOL
		default CROSSTOOL_VERSION_0_38

	config CROSSTOOL_VERSION_0_38
		bool
		prompt "0.38"

	config CROSSTOOL_VERSION_0_32
		bool
		prompt "0.32"
endchoice
	
choice
	prompt "GCC Version"
		depends on CROSSTOOL
	
	config GCC_4_0_2
		bool
		prompt "4.0.2"

	config GCC_3_4_5
		bool
		prompt "3.4.5"

	config GCC_3_4_4
		bool
		prompt "3.4.4"
	
	config GCC_3_4_3
		bool
		prompt "3.4.3"
	
	config GCC_3_4_2
		bool
		prompt "3.4.2"

	config GCC_3_4_1
		bool
		prompt "3.4.1"

	config GCC_3_4_0
		bool
		prompt "3.4.0"

	config GCC_3_3_6
		bool
		prompt "3.3.6"

	config GCC_3_3_3
		bool
		prompt "3.3.3"

	config GCC_3_3_2
		bool
		prompt "3.3.2"

	config GCC_3_2_3
		bool
		prompt "3.2.3"

	config GCC_2_95_3
		bool
		prompt "2.95.3"

endchoice

config GCC_VERSION
	string 
	default "2.95.3"	if GCC_2_95_3
	default "3.2.3"		if GCC_3_2_3
	default "3.3.2"		if GCC_3_3_2
	default "3.3.3"		if GCC_3_3_2
	default "3.4.0"		if GCC_3_4_0
	default "3.4.1"		if GCC_3_4_1
	default "3.4.2"		if GCC_3_4_2
	default "3.4.3"		if GCC_3_4_3
	default "3.4.4"		if GCC_3_4_4
	default "3.4.5"		if GCC_3_4_5
	default "4.0.2"		if GCC_4_0_2
	

config CROSSTOOL_GCCLANG_CC
	depends on CROSSTOOL
	bool
	prompt "C++ language support for gcc"
	default y

config GCC_MULTILIB
	bool
	prompt "build gcc with multilib support"
	default n
	depends on CROSSTOOL
	help
	  FIXME: is this working and being used? [RSC]

choice
	prompt "binutils"
		depends on CROSSTOOL

	config BINUTILS_2_16_1
		bool
		prompt "2.16.1"

	config BINUTILS_2_15
		bool
		prompt "2.15"

	config BINUTILS_2_14_90_0_5
		bool
		prompt "2.14.90.0.5"

	config BINUTILS_2_14
		bool
		prompt "2.14"

endchoice

config CROSSTOOL_KERNELCONFIG
	string
	depends on CROSSTOOL
	default "arm.config" 			if ARCH_ARM
	default "i386.config"			if ARCH_X86 && OPT_I386
	default "i486.config"			if ARCH_X86 && OPT_I486
	default "i586.config"			if ARCH_X86 && OPT_I586
	default "i686.config"			if ARCH_X86 && OPT_I686
	default "alpha.config"			if ARCH_ALPHA
	default "m68k.config"			if ARCH_M68K
#	default "cris.config"
#	default "ia64.config"
#	default "mipsel.config"
#	default "sh3.config"
#	default "sparc.config"
#	default "x86_64.config"
#	default "hppa.config"
#	default "powerpc64.config"
#	default "s390.config"
#	default "sh4.config"
#	default "sparc64.config"

config BINUTILS_VERSION
	string
	default "2.16.1"	if BINUTILS_2_16_1
	default "2.15"		if BINUTILS_2_15
	default "2.14"		if BINUTILS_2_14
	default "2.14.90.0.5"	if BINUTILS_2_14_90_0_5

#config GCC_2
#	bool
#	default y if GCC_2_95_3
#
#config GCC_3
#	bool
#	default y if GCC_3_2_3
#	default y if GCC_3_3_2
#	default y if GCC_3_4_1
#
#config GCC_SHARE
#	bool
#	prompt "  build gcc shared"
#	default y
#	depends on CROSSTOOL
#	help
#	  FIXME: is this working and being used? [RSC]

##############################################################################
comment "Cross Debugging Tools"
##############################################################################

source "rules/cross-gdb.in"

##############################################################################
comment "Other Tools"
##############################################################################

config XCHAIN-DISTCC
	bool
	prompt "distcc"
	default n

config NASM
	bool
	prompt "x86 NASM"
	depends on ARCH_X86

config XCHAIN-SCONS
	bool
	prompt "scons"
	help
	  Requires Python-1.6 or later and Python distutils on the Host,
	  these tools are not (yet) part of ptxdist