4 prompt "GCC compiler Version"
5 default BR2_GCC_VERSION_ARC if BR2_arc
6 default BR2_GCC_VERSION_5_X
8 Select the version of gcc you wish to use.
10 config BR2_GCC_VERSION_4_8_X
12 # Broken or unsupported architectures
13 depends on !BR2_microblaze && !BR2_arc \
14 && !BR2_powerpc64le && !BR2_nios2 && !BR2_bfin
15 # Broken or unsupported ARM cores
16 depends on !BR2_cortex_a12 && !BR2_cortex_a17 && !BR2_ARM_CPU_ARMV8
17 # Broken or unsupported PPC cores
18 depends on !BR2_powerpc_power8
19 # Unsupported MIPS cores
20 depends on !BR2_mips_interaptiv
21 # gcc-4.8.x + binutils-2.25 is broken for MIPS
22 depends on !((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && BR2_BINUTILS_VERSION_2_25_X)
23 # Unsupported for MIPS R5
24 depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5
25 # Unsupported for MIPS R6
26 depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
27 # musl ppc64 unsupported
28 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
29 # musl mips64 unsupported
30 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
31 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
33 config BR2_GCC_VERSION_ARC
35 # Only supported architecture
37 select BR2_TOOLCHAIN_GCC_AT_LEAST_6
39 config BR2_GCC_VERSION_4_9_X
41 # Broken or unsupported architectures
42 depends on !BR2_arc && !BR2_bfin
43 # Broken or unsupported ARM cores
44 depends on !BR2_cortex_a17 && !BR2_cortex_a72
45 # Unsupported MIPS cores
46 depends on !BR2_mips_interaptiv
47 # Unsupported for MIPS R5
48 depends on !BR2_MIPS_CPU_MIPS32R5 && !BR2_MIPS_CPU_MIPS64R5
49 # Unsupported for MIPS R6
50 depends on !BR2_MIPS_CPU_MIPS32R6 && !BR2_MIPS_CPU_MIPS64R6
51 # musl microblaze unsupported
52 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_microblazeel || BR2_microblazebe))
53 # musl ppc64 unsupported
54 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
55 # musl mips64 unsupported
56 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
57 # PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
58 select BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
60 config BR2_GCC_VERSION_5_X
62 # Broken or unsupported architectures
63 depends on !BR2_arc && !BR2_bfin
64 # musl ppc64 unsupported
65 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_powerpc64 || BR2_powerpc64le))
66 # Unsupported MIPS cores
67 depends on !BR2_mips_interaptiv && !BR2_mips_m5150 && \
68 !BR2_mips_m6250 && !BR2_mips_i6400 && !BR2_mips_p6600
69 # musl mips64 unsupported
70 depends on !(BR2_TOOLCHAIN_USES_MUSL && (BR2_mips64 || BR2_mips64el))
71 select BR2_TOOLCHAIN_GCC_AT_LEAST_5
73 config BR2_GCC_VERSION_6_X
75 # Broken or unsupported architectures
77 depends on !BR2_microblaze
78 # Unsupported MIPS cores
79 depends on !BR2_mips_m6250 && !BR2_mips_p6600
80 select BR2_TOOLCHAIN_GCC_AT_LEAST_6
84 # Indicates if GCC for architecture supports --with-{arch,cpu,..} to
85 # set default CFLAGS, otherwise values will be used by toolchain
87 config BR2_GCC_ARCH_HAS_CONFIGURABLE_DEFAULTS
89 default y if !BR2_bfin
91 config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
95 config BR2_GCC_VERSION
97 default "4.8.5" if BR2_GCC_VERSION_4_8_X
98 default "4.9.4" if BR2_GCC_VERSION_4_9_X
99 default "5.4.0" if BR2_GCC_VERSION_5_X
100 default "6.3.0" if BR2_GCC_VERSION_6_X
101 default "arc-2016.09-release" if BR2_GCC_VERSION_ARC
103 config BR2_EXTRA_GCC_CONFIG_OPTIONS
104 string "Additional gcc options"
107 Any additional gcc configure options you may want to
108 include. Those options are applied for all of the gcc
109 initial, gcc intermediate and gcc final passes.
111 config BR2_TOOLCHAIN_BUILDROOT_CXX
112 bool "Enable C++ support"
113 select BR2_INSTALL_LIBSTDCPP
115 Enable this option if you want your toolchain to support the
116 C++ language and you want C++ libraries to be installed on
119 comment "Fortran support needs a toolchain w/ wchar"
120 depends on BR2_TOOLCHAIN_HAS_LIBQUADMATH
121 depends on !BR2_USE_WCHAR # libquadmath
123 config BR2_TOOLCHAIN_BUILDROOT_FORTRAN
124 bool "Enable Fortran support"
125 # on architecture building libquadmath, wchar is required
126 depends on !BR2_TOOLCHAIN_HAS_LIBQUADMATH || \
127 (BR2_TOOLCHAIN_HAS_LIBQUADMATH && BR2_USE_WCHAR)
128 select BR2_TOOLCHAIN_HAS_FORTRAN
130 Enable this option if you want your toolchain to support the
131 Fortran language and you want Fortran libraries to be
132 installed on your target system.
134 config BR2_GCC_ENABLE_LTO
135 bool "Enable compiler link-time-optimization support"
136 select BR2_BINUTILS_ENABLE_LTO
138 This option enables link-time optimization (LTO) support in
141 config BR2_GCC_ENABLE_OPENMP
142 bool "Enable compiler OpenMP support"
143 depends on !BR2_PTHREADS_NONE && !BR2_arc && !BR2_microblaze
145 Enable OpenMP support for the compiler
147 config BR2_GCC_ENABLE_LIBMUDFLAP
148 bool "Enable libmudflap support"
149 # There are architectures, or specific configurations for
150 # which mudflap is not supported.
151 depends on !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
152 depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
154 libmudflap is a gcc library used for the mudflap pointer
155 debugging functionality. It is only needed if you intend to
156 use the -fmudflap gcc flag.
158 See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
159 the help of the gcc -fmudflap option for more details.
161 If you're unsure, leave this option disabled.
163 config BR2_GCC_ENABLE_GRAPHITE
164 bool "Enable graphite support"
166 This option enables the graphite optimizations in the