summaryrefslogtreecommitdiffstats
path: root/rules/target.in
blob: 3f2bc7e96a718621e516669f6a381271cd9c0ef8 (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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
menu	"Target Options      "

choice
	prompt "CPU Architecture "

	config ARCH_ARM
		bool "ARM"
		help
		  This is support for the ARM processor architecture.

	config ARCH_ARM_NOMMU
		bool "ARM-nommu"
		depends on EXP_M
		help
		  This is support for the ARM processor architecture w/o MMU.

	config ARCH_X86
		bool "X86"
		help
		  This is support for the Intel x86 architecture.

	config ARCH_PPC
		bool "PPC"

	config ARCH_SPARC
		bool "SPARC"
		depends on EXP

	config ARCH_MIPS
		bool "MIPS"
		depends on EXP

	config ARCH_CRIS
		depends on EXP_M
		bool "CRIS"

	config ARCH_PARISC
		depends on EXP_M
		bool "PARISC"

	config ARCH_SH
		depends on EXP_M
		bool "SuperH"
endchoice

choice
	prompt "ARM architecture"
		depends on ARCH_ARM || ARCH_ARM_NOMMU

	config ARM_ARCH_PXA
		bool "pxa (little endian)"
		depends on ARCH_ARM

	config ARM_ARCH_EPXA
		bool "Excalibur (little endian)"
		depends on ARCH_ARM

	config ARM_ARCH_SA1100
		bool "sa1100 (little endian)"
		depends on ARCH_ARM

	config ARM_ARCH_IXP2000
		bool "ixp2000 (big endian)"
		depends on ARCH_ARM && EXP_M

	config ARM_ARCH_NETARM
		bool "net+arm (little endian)"
		depends on ARCH_ARM_NOMMU
		
	config ARM_ARCH_ATMEL
		bool "atmel (little endian)"
		depends on ARCH_ARM_NOMMU

	config ARM_ARCH_IMX
		bool "i.MX (little endian)"
		depends on ARCH_ARM
		
endchoice

config ARM_ARCH
	string
	default "pxa"			if ARM_ARCH_PXA
	default "sa1100"		if ARM_ARCH_SA1100
	default "netarm"		if ARM_ARCH_NETARM
	default "atmel"			if ARM_ARCH_ATMEL
	default "ixp2000"		if ARM_ARCH_IXP2000
	default "epxa"			if ARM_ARCH_EPXA
	default "imx"			if ARM_ARCH_IMX

config ARM_ARCH_BE
	bool
	default y if ARM_ARCH_IXP2000

config ARM_ARCH_LE
	bool
	default y if ARM_ARCH_PXA || ARM_ARCH_SA1100 || ARM_ARCH_NETARM || ARM_ARCH_ATMEL || ARM_ARCH_IMX

choice 
	prompt "MIPS architecture"
	depends on ARCH_MIPS

	config MIPS_ARCH_BE
		bool "mips (big endian)"

	config MIPS_ARCH_LE
		bool "mipsel (little endian)"
endchoice

choice
	prompt "SuperH architecture"
	depends on ARCH_SH

	config SH_ARCH_SH3
		bool "SH3"

	config SH_ARCH_SH4
		bool "SH4"
endchoice

choice
	prompt "Code Optimization"

	config OPT_ARM
		bool "generic arm"
		depends on ARCH_ARM
	config OPT_ARM_NOMMU
		bool "generic arm (w/o MMU)"
		depends on ARCH_ARM_NOMMU

	config OPT_I386
		bool "386"
		depends on ARCH_X86
	config OPT_I486
		bool "486"
		depends on ARCH_X86
	config OPT_I586
		bool "586"
		depends on ARCH_X86
	config OPT_I686
		bool "686"
		depends on ARCH_X86

	config OPT_PPC
		bool "generic PPC"
		depends on ARCH_PPC
	config OPT_PPC405
		bool "PPC 405"
		depends on ARCH_PPC
	config OPT_PPC750
		bool "PPC 750"
		depends on ARCH_PPC
	config OPT_PPC7450
		bool "PPC 7450"
		depends on ARCH_PPC

	config OPT_SPARC
		bool "generic sparc"
		depends on ARCH_SPARC

	config OPT_MIPS
		bool "generic mips (big endian)"
		depends on MIPS_ARCH_BE
	config OPT_MIPSEL
		bool "generic mipsel (little endian)"
		depends on MIPS_ARCH_LE

	config OPT_CRIS
		bool "generic cris"
		depends on ARCH_CRIS

	config OPT_PARISC
		bool "generic parisc"
		depends on ARCH_PARISC

	config OPT_SH3
		bool "generic SH3"
		depends on SH_ARCH_SH3

	config OPT_SH4
		bool "generic SH4"
		depends on SH_ARCH_SH4
endchoice

config SOFTFLOAT
	bool
	prompt "Use Softfloat"
	default n
	depends on ARCH_ARM || ARCH_PPC
	help
	  Set this option if you want to let the toolchain replace the
	  floating point instructions by emulation code. 

comment "---"

config TARGET_EXTRA_CPPFLAGS
	string
	prompt "Extra CPPFLAGS (pp)"

config TARGET_EXTRA_CFLAGS
	string
	prompt "Extra CFLAGS (c)"

config TARGET_EXTRA_CXXFLAGS
	string
	prompt "Extra CXXFLAGS (c++)"

config TARGET_EXTRA_LDFLAGS
	string
	prompt "Extra LDFLAGS (ld)"

config TARGET_CONFIG_FILE
	string
	prompt "Name of architecture config file in $PTXDIST/config/arch"
	default "arm.dat"		if ARCH_ARM
	default "ix86.dat"		if ARCH_X86
	default "powerpc.dat"		if OPT_PPC
	default "powerpc-405.dat"	if OPT_PPC405
	default "powerpc-750.dat"	if OPT_PPC750
	default "powerpc-7450.dat"	if OPT_PPC7450
	default "sparc.dat"		if ARCH_SPARC
	default "mips.dat"		if MIPS_ARCH_BE
	default "mipsel.dat"		if MIPS_ARCH_LE
	default "cris.dat"		if ARCH_CRIS
	default "hppa.dat"		if ARCH_PARISC
	default "sh3.dat"		if SH_ARCH_SH3
	default "sh4.dat"		if SH_ARCH_SH4

comment "---"

config ARCH_NOMMU
	bool
	default y if ARCH_ARM_NOMMU

config ARCH
	string
	default "arm"			if ARCH_ARM
	default "armnommu"		if ARCH_ARM_NOMMU
	default "i386"			if ARCH_X86
	default "ppc"			if ARCH_PPC
	default "sparc"			if ARCH_SPARC
	default "mips"			if ARCH_MIPS
	default "mips"			if ARCH_MIPSEL
	default "cris"			if ARCH_CRIS
	default "parisc"		if ARCH_PARISC
	default "sh"			if ARCH_SH

config ARCH_USERSPACE
	string
	default "arm"			if ARCH_ARM
	default "arm"			if ARCH_ARM_NOMMU
	default "i386"			if ARCH_X86
	default "powerpc"		if ARCH_PPC
	default "sparc"			if ARCH_SPARC
	default "mips"			if ARCH_MIPS
	default "mipsel"		if ARCH_MIPSEL
	default "cris"			if ARCH_CRIS
	default "hppa"			if ARCH_PARISC
	default "sh"			if ARCH_SH

config ARM_PROC
	string
	default "armv" if ARCH_ARM || ARCH_ARM_NOMMU

config PREFIX
	prompt "Prefix for development environment"
	string
	default "$(TOPDIR)/local"

config ROOT
	prompt "Prefix for root filesystem"
	string

endmenu