xref: /OK3568_Linux_fs/buildroot/arch/Config.in.x86 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1# i386/x86_64 cpu features
2config BR2_X86_CPU_HAS_MMX
3	bool
4config BR2_X86_CPU_HAS_3DNOW
5	bool
6config BR2_X86_CPU_HAS_SSE
7	bool
8config BR2_X86_CPU_HAS_SSE2
9	bool
10config BR2_X86_CPU_HAS_SSE3
11	bool
12config BR2_X86_CPU_HAS_SSSE3
13	bool
14config BR2_X86_CPU_HAS_SSE4
15	bool
16config BR2_X86_CPU_HAS_SSE42
17	bool
18config BR2_X86_CPU_HAS_AVX
19	bool
20config BR2_X86_CPU_HAS_AVX2
21	bool
22
23choice
24	prompt "Target Architecture Variant"
25	default BR2_x86_i586 if BR2_i386
26	depends on BR2_i386 || BR2_x86_64
27	help
28	  Specific CPU variant to use
29
30config BR2_x86_i486
31	bool "i486"
32	depends on !BR2_x86_64
33config BR2_x86_i586
34	bool "i586"
35	depends on !BR2_x86_64
36config BR2_x86_x1000
37	bool "x1000"
38	depends on !BR2_x86_64
39	help
40	  The Intel X1000 is a Pentium class microprocessor in the
41	  Quark (sub-Atom) Product Line. The X1000 has a bug on the
42	  lock prefix requiring that prefix must be stripped at build
43	  time.
44
45	  See https://en.wikipedia.org/wiki/Intel_Quark
46
47config BR2_x86_i686
48	bool "i686"
49	depends on !BR2_x86_64
50config BR2_x86_pentiumpro
51	bool "pentium pro"
52	depends on !BR2_x86_64
53config BR2_x86_pentium_mmx
54	bool "pentium MMX"
55	depends on !BR2_x86_64
56	select BR2_X86_CPU_HAS_MMX
57config BR2_x86_pentium_m
58	bool "pentium mobile"
59	depends on !BR2_x86_64
60	select BR2_X86_CPU_HAS_MMX
61	select BR2_X86_CPU_HAS_SSE
62config BR2_x86_pentium2
63	bool "pentium2"
64	depends on !BR2_x86_64
65	select BR2_X86_CPU_HAS_MMX
66config BR2_x86_pentium3
67	bool "pentium3"
68	depends on !BR2_x86_64
69	select BR2_X86_CPU_HAS_MMX
70	select BR2_X86_CPU_HAS_SSE
71config BR2_x86_pentium4
72	bool "pentium4"
73	depends on !BR2_x86_64
74	select BR2_X86_CPU_HAS_MMX
75	select BR2_X86_CPU_HAS_SSE
76	select BR2_X86_CPU_HAS_SSE2
77config BR2_x86_prescott
78	bool "prescott"
79	depends on !BR2_x86_64
80	select BR2_X86_CPU_HAS_MMX
81	select BR2_X86_CPU_HAS_SSE
82	select BR2_X86_CPU_HAS_SSE2
83	select BR2_X86_CPU_HAS_SSE3
84config BR2_x86_nocona
85	bool "nocona"
86	select BR2_X86_CPU_HAS_MMX
87	select BR2_X86_CPU_HAS_SSE
88	select BR2_X86_CPU_HAS_SSE2
89	select BR2_X86_CPU_HAS_SSE3
90config BR2_x86_core2
91	bool "core2"
92	select BR2_X86_CPU_HAS_MMX
93	select BR2_X86_CPU_HAS_SSE
94	select BR2_X86_CPU_HAS_SSE2
95	select BR2_X86_CPU_HAS_SSE3
96	select BR2_X86_CPU_HAS_SSSE3
97config BR2_x86_corei7
98	bool "corei7"
99	select BR2_X86_CPU_HAS_MMX
100	select BR2_X86_CPU_HAS_SSE
101	select BR2_X86_CPU_HAS_SSE2
102	select BR2_X86_CPU_HAS_SSE3
103	select BR2_X86_CPU_HAS_SSSE3
104	select BR2_X86_CPU_HAS_SSE4
105	select BR2_X86_CPU_HAS_SSE42
106config BR2_x86_westmere
107	bool "westmere"
108	select BR2_X86_CPU_HAS_MMX
109	select BR2_X86_CPU_HAS_SSE
110	select BR2_X86_CPU_HAS_SSE2
111	select BR2_X86_CPU_HAS_SSE3
112	select BR2_X86_CPU_HAS_SSSE3
113	select BR2_X86_CPU_HAS_SSE4
114	select BR2_X86_CPU_HAS_SSE42
115config BR2_x86_corei7_avx
116	bool "corei7-avx"
117	select BR2_X86_CPU_HAS_MMX
118	select BR2_X86_CPU_HAS_SSE
119	select BR2_X86_CPU_HAS_SSE2
120	select BR2_X86_CPU_HAS_SSE3
121	select BR2_X86_CPU_HAS_SSSE3
122	select BR2_X86_CPU_HAS_SSE4
123	select BR2_X86_CPU_HAS_SSE42
124	select BR2_X86_CPU_HAS_AVX
125config BR2_x86_core_avx2
126	bool "core-avx2"
127	select BR2_X86_CPU_HAS_MMX
128	select BR2_X86_CPU_HAS_SSE
129	select BR2_X86_CPU_HAS_SSE2
130	select BR2_X86_CPU_HAS_SSE3
131	select BR2_X86_CPU_HAS_SSSE3
132	select BR2_X86_CPU_HAS_SSE4
133	select BR2_X86_CPU_HAS_SSE42
134	select BR2_X86_CPU_HAS_AVX
135	select BR2_X86_CPU_HAS_AVX2
136config BR2_x86_atom
137	bool "atom"
138	select BR2_X86_CPU_HAS_MMX
139	select BR2_X86_CPU_HAS_SSE
140	select BR2_X86_CPU_HAS_SSE2
141	select BR2_X86_CPU_HAS_SSE3
142	select BR2_X86_CPU_HAS_SSSE3
143config BR2_x86_silvermont
144	bool "silvermont"
145	select BR2_X86_CPU_HAS_MMX
146	select BR2_X86_CPU_HAS_SSE
147	select BR2_X86_CPU_HAS_SSE2
148	select BR2_X86_CPU_HAS_SSE3
149	select BR2_X86_CPU_HAS_SSSE3
150	select BR2_X86_CPU_HAS_SSE4
151	select BR2_X86_CPU_HAS_SSE42
152config BR2_x86_k6
153	bool "k6"
154	depends on !BR2_x86_64
155	select BR2_X86_CPU_HAS_MMX
156config BR2_x86_k6_2
157	bool "k6-2"
158	depends on !BR2_x86_64
159	select BR2_X86_CPU_HAS_MMX
160	select BR2_X86_CPU_HAS_3DNOW
161config BR2_x86_athlon
162	bool "athlon"
163	depends on !BR2_x86_64
164	select BR2_X86_CPU_HAS_MMX
165	select BR2_X86_CPU_HAS_3DNOW
166config BR2_x86_athlon_4
167	bool "athlon-4"
168	depends on !BR2_x86_64
169	select BR2_X86_CPU_HAS_MMX
170	select BR2_X86_CPU_HAS_SSE
171	select BR2_X86_CPU_HAS_3DNOW
172config BR2_x86_opteron
173	bool "opteron"
174	select BR2_X86_CPU_HAS_MMX
175	select BR2_X86_CPU_HAS_SSE
176	select BR2_X86_CPU_HAS_SSE2
177config BR2_x86_opteron_sse3
178	bool "opteron w/ SSE3"
179	select BR2_X86_CPU_HAS_MMX
180	select BR2_X86_CPU_HAS_SSE
181	select BR2_X86_CPU_HAS_SSE2
182	select BR2_X86_CPU_HAS_SSE3
183config BR2_x86_barcelona
184	bool "barcelona"
185	select BR2_X86_CPU_HAS_MMX
186	select BR2_X86_CPU_HAS_SSE
187	select BR2_X86_CPU_HAS_SSE2
188	select BR2_X86_CPU_HAS_SSE3
189config BR2_x86_jaguar
190	bool "jaguar"
191	select BR2_X86_CPU_HAS_MMX
192	select BR2_X86_CPU_HAS_SSE
193	select BR2_X86_CPU_HAS_SSE2
194	select BR2_X86_CPU_HAS_SSE3
195	select BR2_X86_CPU_HAS_SSSE3
196	select BR2_X86_CPU_HAS_SSE4
197	select BR2_X86_CPU_HAS_SSE42
198config BR2_x86_steamroller
199	bool "steamroller"
200	select BR2_X86_CPU_HAS_MMX
201	select BR2_X86_CPU_HAS_SSE
202	select BR2_X86_CPU_HAS_SSE2
203	select BR2_X86_CPU_HAS_SSE3
204	select BR2_X86_CPU_HAS_SSSE3
205	select BR2_X86_CPU_HAS_SSE4
206	select BR2_X86_CPU_HAS_SSE42
207config BR2_x86_geode
208	bool "geode"
209	# Don't include MMX support because there several variant of geode
210	# processor, some with MMX support, some without.
211	# See: http://en.wikipedia.org/wiki/Geode_%28processor%29
212	depends on !BR2_x86_64
213config BR2_x86_c3
214	bool "Via/Cyrix C3 (Samuel/Ezra cores)"
215	depends on !BR2_x86_64
216	select BR2_X86_CPU_HAS_MMX
217	select BR2_X86_CPU_HAS_3DNOW
218config BR2_x86_c32
219	bool "Via C3-2 (Nehemiah cores)"
220	depends on !BR2_x86_64
221	select BR2_X86_CPU_HAS_MMX
222	select BR2_X86_CPU_HAS_SSE
223config BR2_x86_winchip_c6
224	bool "IDT Winchip C6"
225	depends on !BR2_x86_64
226	select BR2_X86_CPU_HAS_MMX
227config BR2_x86_winchip2
228	bool "IDT Winchip 2"
229	depends on !BR2_x86_64
230	select BR2_X86_CPU_HAS_MMX
231endchoice
232
233config BR2_ARCH
234	default "i486"		if BR2_x86_i486
235	default "i586"		if BR2_x86_i586
236	default "i586"		if BR2_x86_x1000
237	default "i586"		if BR2_x86_pentium_mmx
238	default "i586"		if BR2_x86_geode
239	default "i586"		if BR2_x86_c3
240	default "i686"		if BR2_x86_c32
241	default "i586"		if BR2_x86_winchip_c6
242	default "i586"		if BR2_x86_winchip2
243	default "i686"		if BR2_x86_i686
244	default "i686"		if BR2_x86_pentium2
245	default "i686"		if BR2_x86_pentium3
246	default "i686"		if BR2_x86_pentium4
247	default "i686"		if BR2_x86_pentium_m
248	default "i686"		if BR2_x86_pentiumpro
249	default "i686"		if BR2_x86_prescott
250	default "i686"		if BR2_x86_nocona && BR2_i386
251	default "i686"		if BR2_x86_core2 && BR2_i386
252	default "i686"		if BR2_x86_corei7 && BR2_i386
253	default "i686"		if BR2_x86_westmere && BR2_i386
254	default "i686"		if BR2_x86_corei7_avx && BR2_i386
255	default "i686"		if BR2_x86_core_avx2 && BR2_i386
256	default "i686"		if BR2_x86_atom && BR2_i386
257	default "i686"		if BR2_x86_silvermont && BR2_i386
258	default "i686"		if BR2_x86_opteron && BR2_i386
259	default "i686"		if BR2_x86_opteron_sse3 && BR2_i386
260	default "i686"		if BR2_x86_barcelona && BR2_i386
261	default "i686"		if BR2_x86_jaguar && BR2_i386
262	default "i686"		if BR2_x86_steamroller && BR2_i386
263	default "i686"		if BR2_x86_k6
264	default "i686"		if BR2_x86_k6_2
265	default "i686"		if BR2_x86_athlon
266	default "i686"		if BR2_x86_athlon_4
267	default "x86_64"	if BR2_x86_64
268
269config BR2_NORMALIZED_ARCH
270	default "i386"		if !BR2_x86_64
271	default "x86_64"	if BR2_x86_64
272
273config BR2_ENDIAN
274	default "LITTLE"
275
276config BR2_GCC_TARGET_ARCH
277	default "i486"		if BR2_x86_i486
278	default "i586"		if BR2_x86_i586
279	default "i586"		if BR2_x86_x1000
280	default "pentium-mmx"	if BR2_x86_pentium_mmx
281	default "i686"		if BR2_x86_i686
282	default "pentiumpro"	if BR2_x86_pentiumpro
283	default "pentium-m"	if BR2_x86_pentium_m
284	default "pentium2"	if BR2_x86_pentium2
285	default "pentium3"	if BR2_x86_pentium3
286	default "pentium4"	if BR2_x86_pentium4
287	default "prescott"	if BR2_x86_prescott
288	default "nocona"	if BR2_x86_nocona
289	default "core2"		if BR2_x86_core2
290	default "corei7"	if BR2_x86_corei7
291	default "corei7-avx"	if BR2_x86_corei7_avx
292	default "core-avx2"	if BR2_x86_core_avx2
293	default "atom"		if BR2_x86_atom
294	default "westmere"	if BR2_x86_westmere
295	default "silvermont"	if BR2_x86_silvermont
296	default "k8"		if BR2_x86_opteron
297	default "k8-sse3"	if BR2_x86_opteron_sse3
298	default "barcelona"	if BR2_x86_barcelona
299	default "btver2"	if BR2_x86_jaguar
300	default "bdver3"	if BR2_x86_steamroller
301	default "k6"		if BR2_x86_k6
302	default "k6-2"		if BR2_x86_k6_2
303	default "athlon"	if BR2_x86_athlon
304	default "athlon-4"	if BR2_x86_athlon_4
305	default "winchip-c6"	if BR2_x86_winchip_c6
306	default "winchip2"	if BR2_x86_winchip2
307	default "c3"		if BR2_x86_c3
308	default "c3-2"		if BR2_x86_c32
309	default "geode"		if BR2_x86_geode
310
311config BR2_READELF_ARCH_NAME
312	default "Intel 80386"			if BR2_i386
313	default "Advanced Micro Devices X86-64" if BR2_x86_64
314
315# vim: ft=kconfig
316# -*- mode:kconfig; -*-
317