]> Git Repo - buildroot-mgba.git/blob - arch/Config.in
arch: introduce minimal required gcc version
[buildroot-mgba.git] / arch / Config.in
1 menu "Target options"
2
3 config BR2_ARCH_IS_64
4         bool
5
6 config BR2_KERNEL_64_USERLAND_32
7         bool
8
9 config BR2_SOFT_FLOAT
10         bool
11
12 config BR2_ARCH_HAS_MMU_MANDATORY
13         bool
14
15 config BR2_ARCH_HAS_MMU_OPTIONAL
16         bool
17
18 config BR2_ARCH_HAS_FDPIC_SUPPORT
19         bool
20
21 choice
22         prompt "Target Architecture"
23         default BR2_i386
24         help
25           Select the target architecture family to build for.
26
27 config BR2_arcle
28         bool "ARC (little endian)"
29         select BR2_ARCH_HAS_MMU_MANDATORY
30         help
31           Synopsys' DesignWare ARC Processor Cores are a family of 32-bit CPUs
32           that can be used from deeply embedded to high performance host
33           applications. Little endian.
34
35 config BR2_arceb
36         bool "ARC (big endian)"
37         select BR2_ARCH_HAS_MMU_MANDATORY
38         help
39           Synopsys' DesignWare ARC Processor Cores are a family of 32-bit CPUs
40           that can be used from deeply embedded to high performance host
41           applications. Big endian.
42
43 config BR2_arm
44         bool "ARM (little endian)"
45         # MMU support is set by the subarchitecture file, arch/Config.in.arm
46         help
47           ARM is a 32-bit reduced instruction set computer (RISC) instruction
48           set architecture (ISA) developed by ARM Holdings. Little endian.
49           http://www.arm.com/
50           http://en.wikipedia.org/wiki/ARM
51
52 config BR2_armeb
53         bool "ARM (big endian)"
54         # MMU support is set by the subarchitecture file, arch/Config.in.arm
55         help
56           ARM is a 32-bit reduced instruction set computer (RISC) instruction
57           set architecture (ISA) developed by ARM Holdings. Big endian.
58           http://www.arm.com/
59           http://en.wikipedia.org/wiki/ARM
60
61 config BR2_aarch64
62         bool "AArch64 (little endian)"
63         select BR2_ARCH_IS_64
64         select BR2_ARCH_HAS_MMU_MANDATORY
65         help
66           Aarch64 is a 64-bit architecture developed by ARM Holdings.
67           http://www.arm.com/products/processors/instruction-set-architectures/armv8-architecture.php
68           http://en.wikipedia.org/wiki/ARM
69
70 config BR2_aarch64_be
71         bool "AArch64 (big endian)"
72         select BR2_ARCH_IS_64
73         select BR2_ARCH_HAS_MMU_MANDATORY
74         help
75           Aarch64 is a 64-bit architecture developed by ARM Holdings.
76           http://www.arm.com/products/processors/instruction-set-architectures/armv8-architecture.php
77           http://en.wikipedia.org/wiki/ARM
78
79 config BR2_bfin
80         bool "Blackfin"
81         select BR2_ARCH_HAS_FDPIC_SUPPORT
82         help
83           The Blackfin is a family of 16 or 32-bit microprocessors developed,
84           manufactured and marketed by Analog Devices.
85           http://www.analog.com/
86           http://en.wikipedia.org/wiki/Blackfin
87
88 config BR2_csky
89         bool "csky"
90         select BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT
91         select BR2_ARCH_HAS_MMU_MANDATORY
92         help
93           csky is processor IP from china.
94           http://www.c-sky.com/
95           http://www.github.com/c-sky
96
97 config BR2_i386
98         bool "i386"
99         select BR2_ARCH_HAS_MMU_MANDATORY
100         help
101           Intel i386 architecture compatible microprocessor
102           http://en.wikipedia.org/wiki/I386
103
104 config BR2_m68k
105         bool "m68k"
106         # MMU support is set by the subarchitecture file, arch/Config.in.m68k
107         help
108           Motorola 68000 family microprocessor
109           http://en.wikipedia.org/wiki/M68k
110
111 config BR2_microblazeel
112         bool "Microblaze AXI (little endian)"
113         select BR2_ARCH_HAS_MMU_MANDATORY
114         help
115           Soft processor core designed for Xilinx FPGAs from Xilinx. AXI bus
116           based architecture (little endian)
117           http://www.xilinx.com
118           http://en.wikipedia.org/wiki/Microblaze
119
120 config BR2_microblazebe
121         bool "Microblaze non-AXI (big endian)"
122         select BR2_ARCH_HAS_MMU_MANDATORY
123         help
124           Soft processor core designed for Xilinx FPGAs from Xilinx. PLB bus
125           based architecture (non-AXI, big endian)
126           http://www.xilinx.com
127           http://en.wikipedia.org/wiki/Microblaze
128
129 config BR2_mips
130         bool "MIPS (big endian)"
131         select BR2_ARCH_HAS_MMU_MANDATORY
132         help
133           MIPS is a RISC microprocessor from MIPS Technologies. Big endian.
134           http://www.mips.com/
135           http://en.wikipedia.org/wiki/MIPS_Technologies
136
137 config BR2_mipsel
138         bool "MIPS (little endian)"
139         select BR2_ARCH_HAS_MMU_MANDATORY
140         help
141           MIPS is a RISC microprocessor from MIPS Technologies. Little endian.
142           http://www.mips.com/
143           http://en.wikipedia.org/wiki/MIPS_Technologies
144
145 config BR2_mips64
146         bool "MIPS64 (big endian)"
147         select BR2_ARCH_IS_64
148         select BR2_ARCH_HAS_MMU_MANDATORY
149         help
150           MIPS is a RISC microprocessor from MIPS Technologies. Big endian.
151           http://www.mips.com/
152           http://en.wikipedia.org/wiki/MIPS_Technologies
153
154 config BR2_mips64el
155         bool "MIPS64 (little endian)"
156         select BR2_ARCH_IS_64
157         select BR2_ARCH_HAS_MMU_MANDATORY
158         help
159           MIPS is a RISC microprocessor from MIPS Technologies. Little endian.
160           http://www.mips.com/
161           http://en.wikipedia.org/wiki/MIPS_Technologies
162
163 config BR2_nios2
164         bool "Nios II"
165         select BR2_ARCH_HAS_MMU_MANDATORY
166         help
167           Nios II is a soft core processor from Altera Corporation.
168           http://www.altera.com/
169           http://en.wikipedia.org/wiki/Nios_II
170
171 config BR2_or1k
172         bool "OpenRISC"
173         select BR2_ARCH_HAS_MMU_MANDATORY
174         help
175           OpenRISC is a free and open processor for embedded system.
176           http://openrisc.io
177
178 config BR2_powerpc
179         bool "PowerPC"
180         select BR2_ARCH_HAS_MMU_MANDATORY
181         help
182           PowerPC is a RISC architecture created by Apple-IBM-Motorola alliance.
183           Big endian.
184           http://www.power.org/
185           http://en.wikipedia.org/wiki/Powerpc
186
187 config BR2_powerpc64
188         bool "PowerPC64 (big endian)"
189         select BR2_ARCH_IS_64
190         select BR2_ARCH_HAS_MMU_MANDATORY
191         help
192           PowerPC is a RISC architecture created by Apple-IBM-Motorola alliance.
193           Big endian.
194           http://www.power.org/
195           http://en.wikipedia.org/wiki/Powerpc
196
197 config BR2_powerpc64le
198         bool "PowerPC64 (little endian)"
199         select BR2_ARCH_IS_64
200         select BR2_ARCH_HAS_MMU_MANDATORY
201         help
202           PowerPC is a RISC architecture created by Apple-IBM-Motorola alliance.
203           Little endian.
204           http://www.power.org/
205           http://en.wikipedia.org/wiki/Powerpc
206
207 config BR2_sh
208         bool "SuperH"
209         select BR2_ARCH_HAS_MMU_OPTIONAL
210         help
211           SuperH (or SH) is a 32-bit reduced instruction set computer (RISC)
212           instruction set architecture (ISA) developed by Hitachi.
213           http://www.hitachi.com/
214           http://en.wikipedia.org/wiki/SuperH
215
216 config BR2_sparc
217         bool "SPARC"
218         select BR2_ARCH_HAS_MMU_MANDATORY
219         help
220           SPARC (from Scalable Processor Architecture) is a RISC instruction
221           set architecture (ISA) developed by Sun Microsystems.
222           http://www.oracle.com/sun
223           http://en.wikipedia.org/wiki/Sparc
224
225 config BR2_sparc64
226         bool "SPARC64"
227         select BR2_ARCH_IS_64
228         select BR2_ARCH_HAS_MMU_MANDATORY
229         help
230           SPARC (from Scalable Processor Architecture) is a RISC instruction
231           set architecture (ISA) developed by Sun Microsystems.
232           http://www.oracle.com/sun
233           http://en.wikipedia.org/wiki/Sparc
234
235 config BR2_x86_64
236         bool "x86_64"
237         select BR2_ARCH_IS_64
238         select BR2_ARCH_HAS_MMU_MANDATORY
239         help
240           x86-64 is an extension of the x86 instruction set (Intel i386
241           architecture compatible microprocessor).
242           http://en.wikipedia.org/wiki/X86_64
243
244 config BR2_xtensa
245         bool "Xtensa"
246         # MMU support is set by the subarchitecture file, arch/Config.in.xtensa
247         help
248           Xtensa is a Tensilica processor IP architecture.
249           http://en.wikipedia.org/wiki/Xtensa
250           http://www.tensilica.com/
251
252 endchoice
253
254 # For some architectures or specific cores, our internal toolchain
255 # backend is not suitable (like, missing support in upstream gcc, or
256 # no ChipCo fork exists...)
257 config BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT
258         bool
259
260 config BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT
261         bool
262         default y if !BR2_ARCH_HAS_NO_TOOLCHAIN_BUILDROOT
263
264 # The following symbols are selected by the individual
265 # Config.in.$ARCH files
266 config BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
267         bool
268
269 config BR2_ARCH_NEEDS_GCC_AT_LEAST_4_9
270         bool
271         select BR2_ARCH_NEEDS_GCC_AT_LEAST_4_8
272
273 config BR2_ARCH_NEEDS_GCC_AT_LEAST_5
274         bool
275         select BR2_ARCH_NEEDS_GCC_AT_LEAST_4_9
276
277 config BR2_ARCH_NEEDS_GCC_AT_LEAST_6
278         bool
279         select BR2_ARCH_NEEDS_GCC_AT_LEAST_5
280
281 config BR2_ARCH_NEEDS_GCC_AT_LEAST_7
282         bool
283         select BR2_ARCH_NEEDS_GCC_AT_LEAST_6
284
285 # The following string values are defined by the individual
286 # Config.in.$ARCH files
287 config BR2_ARCH
288         string
289
290 config BR2_ENDIAN
291         string
292
293 config BR2_GCC_TARGET_ARCH
294         string
295
296 config BR2_GCC_TARGET_ABI
297         string
298
299 config BR2_GCC_TARGET_NAN
300         string
301
302 config BR2_GCC_TARGET_FP32_MODE
303         string
304
305 config BR2_GCC_TARGET_CPU
306         string
307
308 config BR2_GCC_TARGET_CPU_REVISION
309         string
310
311 # The value of this option will be passed as --with-fpu=<value> when
312 # building gcc (internal backend) or -mfpu=<value> in the toolchain
313 # wrapper (external toolchain)
314 config BR2_GCC_TARGET_FPU
315         string
316
317 # The value of this option will be passed as --with-float=<value> when
318 # building gcc (internal backend) or -mfloat-abi=<value> in the toolchain
319 # wrapper (external toolchain)
320 config BR2_GCC_TARGET_FLOAT_ABI
321         string
322
323 # The value of this option will be passed as --with-mode=<value> when
324 # building gcc (internal backend) or -m<value> in the toolchain
325 # wrapper (external toolchain)
326 config BR2_GCC_TARGET_MODE
327         string
328
329 # Must be selected by binary formats that support shared libraries.
330 config BR2_BINFMT_SUPPORTS_SHARED
331         bool
332
333 # Must match the name of the architecture from readelf point of view,
334 # i.e the "Machine:" field of readelf output. See get_machine_name()
335 # in binutils/readelf.c for the list of possible values.
336 config BR2_READELF_ARCH_NAME
337         string
338
339 # Set up target binary format
340 choice
341         prompt "Target Binary Format"
342         default BR2_BINFMT_ELF if BR2_USE_MMU
343         default BR2_BINFMT_FDPIC if BR2_ARCH_HAS_FDPIC_SUPPORT
344         default BR2_BINFMT_FLAT
345
346 config BR2_BINFMT_ELF
347         bool "ELF"
348         depends on BR2_USE_MMU
349         select BR2_BINFMT_SUPPORTS_SHARED
350         help
351           ELF (Executable and Linkable Format) is a format for libraries and
352           executables used across different architectures and operating
353           systems.
354
355 config BR2_BINFMT_FDPIC
356         bool "FDPIC"
357         depends on BR2_ARCH_HAS_FDPIC_SUPPORT
358         select BR2_BINFMT_SUPPORTS_SHARED
359         help
360           ELF FDPIC binaries are based on ELF, but allow the individual load
361           segments of a binary to be located in memory independently of each
362           other. This makes this format ideal for use in environments where no
363           MMU is available.
364
365 config BR2_BINFMT_FLAT
366         bool "FLAT"
367         depends on !BR2_USE_MMU
368         help
369           FLAT binary is a relatively simple and lightweight executable format
370           based on the original a.out format. It is widely used in environment
371           where no MMU is available.
372
373 endchoice
374
375 # Set up flat binary type
376 choice
377         prompt "FLAT Binary type"
378         depends on BR2_BINFMT_FLAT
379         default BR2_BINFMT_FLAT_ONE
380
381 config BR2_BINFMT_FLAT_ONE
382         bool "One memory region"
383         help
384           All segments are linked into one memory region.
385
386 config BR2_BINFMT_FLAT_SEP_DATA
387         bool "Separate data and code region"
388         # this FLAT binary type technically exists on m68k, but fails
389         # to build numerous packages: due to architecture limitation,
390         # big functions cannot be built in this mode. They cause build
391         # failures such as "Tried to convert PC relative branch to
392         # absolute jump" or "error: value -yyyyy out of range".
393         depends on BR2_bfin
394         help
395           Allow for the data and text segments to be separated and placed in
396           different regions of memory.
397
398 config BR2_BINFMT_FLAT_SHARED
399         bool "Shared binary"
400         depends on BR2_m68k || BR2_bfin
401         # Even though this really generates shared binaries, there is no libdl
402         # and dlopen() cannot be used. So packages that require shared
403         # libraries cannot be built. Therefore, we don't select
404         # BR2_BINFMT_SUPPORTS_SHARED and therefore force BR2_STATIC_LIBS.
405         # Although this adds -static to the compilation, that's not a problem
406         # because the -mid-shared-library option overrides it.
407         help
408           Allow to load and link indiviual FLAT binaries at run time.
409
410 endchoice
411
412 if BR2_arcle || BR2_arceb
413 source "arch/Config.in.arc"
414 endif
415
416 if BR2_arm || BR2_armeb || BR2_aarch64 || BR2_aarch64_be
417 source "arch/Config.in.arm"
418 endif
419
420 if BR2_bfin
421 source "arch/Config.in.bfin"
422 endif
423
424 if BR2_csky
425 source "arch/Config.in.csky"
426 endif
427
428 if BR2_m68k
429 source "arch/Config.in.m68k"
430 endif
431
432 if BR2_microblazeel || BR2_microblazebe
433 source "arch/Config.in.microblaze"
434 endif
435
436 if BR2_mips || BR2_mips64 || BR2_mipsel || BR2_mips64el
437 source "arch/Config.in.mips"
438 endif
439
440 if BR2_nios2
441 source "arch/Config.in.nios2"
442 endif
443
444 if BR2_or1k
445 source "arch/Config.in.or1k"
446 endif
447
448 if BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
449 source "arch/Config.in.powerpc"
450 endif
451
452 if BR2_sh
453 source "arch/Config.in.sh"
454 endif
455
456 if BR2_sparc || BR2_sparc64
457 source "arch/Config.in.sparc"
458 endif
459
460 if BR2_i386 || BR2_x86_64
461 source "arch/Config.in.x86"
462 endif
463
464 if BR2_xtensa
465 source "arch/Config.in.xtensa"
466 endif
467
468 endmenu # Target options
This page took 0.053362 seconds and 4 git commands to generate.