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