2013-06-30 21:28:59 +02:00
|
|
|
comment "GCC Options"
|
|
|
|
|
|
|
|
config BR2_GCC_NEEDS_MPC
|
|
|
|
bool
|
|
|
|
|
2014-05-19 21:48:13 +02:00
|
|
|
config BR2_GCC_SUPPORTS_GRAPHITE
|
|
|
|
bool
|
|
|
|
|
2013-06-30 21:28:59 +02:00
|
|
|
choice
|
|
|
|
prompt "GCC compiler Version"
|
2013-07-05 09:15:02 +02:00
|
|
|
default BR2_GCC_VERSION_4_2_2_AVR32_2_1_5 if BR2_avr32
|
2013-07-18 23:47:52 +02:00
|
|
|
default BR2_GCC_VERSION_4_8_ARC if BR2_arc
|
2014-05-25 08:59:22 +02:00
|
|
|
default BR2_GCC_VERSION_4_9_X if BR2_microblaze || BR2_powerpc64le
|
2013-07-20 14:52:10 +02:00
|
|
|
default BR2_GCC_VERSION_4_5_X if BR2_bfin
|
2014-06-01 19:42:25 +02:00
|
|
|
default BR2_GCC_VERSION_4_8_X
|
2013-06-30 21:28:59 +02:00
|
|
|
help
|
|
|
|
Select the version of gcc you wish to use.
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
|
|
|
bool "gcc 4.2.2-avr32-2.1.5"
|
2014-09-22 19:32:21 +02:00
|
|
|
# Only supported architecture
|
|
|
|
depends on BR2_avr32
|
2013-06-30 21:28:59 +02:00
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_5_X
|
2014-09-22 19:32:21 +02:00
|
|
|
bool "gcc 4.5.x"
|
|
|
|
# Broken or unsupported architectures
|
|
|
|
depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc \
|
|
|
|
&& !BR2_avr32 && !BR2_powerpc64le
|
|
|
|
# Broken or unsupported ARM cores
|
|
|
|
depends on !BR2_cortex_a7 && !BR2_cortex_a12 && \
|
|
|
|
!BR2_cortex_a15 && !BR2_fa526 && !BR2_pj4
|
|
|
|
# Broken or unsupported PPC cores
|
2014-11-18 00:14:52 +01:00
|
|
|
depends on !BR2_powerpc_e5500 && !BR2_powerpc_e6500 && \
|
|
|
|
!BR2_powerpc_power8
|
2014-12-19 19:33:27 +01:00
|
|
|
# SPARC -mcpu=leon3 appeared in gcc 4.8.x
|
2014-10-30 09:29:35 +01:00
|
|
|
depends on !BR2_sparc_leon3
|
2014-09-22 19:32:21 +02:00
|
|
|
# Broken or unsupported X86 cores
|
|
|
|
depends on !BR2_x86_corei7 && !BR2_x86_jaguar
|
2013-07-16 10:03:16 +02:00
|
|
|
# ARM EABIhf support appeared in gcc 4.6
|
|
|
|
depends on !BR2_ARM_EABIHF
|
2014-05-05 23:17:05 +02:00
|
|
|
# musl patches only for gcc 4.7+
|
|
|
|
depends on !BR2_TOOLCHAIN_BUILDROOT_MUSL
|
2014-09-22 19:32:21 +02:00
|
|
|
select BR2_GCC_NEEDS_MPC
|
2013-06-30 21:28:59 +02:00
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_7_X
|
|
|
|
bool "gcc 4.7.x"
|
2014-09-22 19:32:21 +02:00
|
|
|
# Broken or unsupported architectures
|
|
|
|
depends on !BR2_microblaze && !BR2_aarch64 && !BR2_arc \
|
|
|
|
&& !BR2_avr32 && !BR2_bfin && !BR2_powerpc64le
|
|
|
|
# Broken or unsupported ARM cores
|
|
|
|
depends on !BR2_cortex_a12 && !BR2_pj4
|
|
|
|
# Broken or unsupported PPC cores
|
2014-11-18 00:14:52 +01:00
|
|
|
depends on !BR2_powerpc_e5500 && !BR2_powerpc_e6500 && \
|
|
|
|
!BR2_powerpc_power8
|
2014-12-19 19:33:27 +01:00
|
|
|
# SPARC -mcpu=leon3 appeared in gcc 4.8.x
|
2014-10-30 09:29:35 +01:00
|
|
|
depends on !BR2_sparc_leon3
|
2014-09-22 19:32:21 +02:00
|
|
|
# Broken or unsupported x86 cores
|
|
|
|
depends on !BR2_x86_jaguar
|
|
|
|
select BR2_GCC_NEEDS_MPC
|
2013-06-30 21:28:59 +02:00
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_8_X
|
2014-09-22 19:32:21 +02:00
|
|
|
bool "gcc 4.8.x"
|
|
|
|
# Broken or unsupported architectures
|
|
|
|
depends on !BR2_microblaze && !BR2_arc && !BR2_avr32 \
|
|
|
|
&& !BR2_bfin && !BR2_powerpc64le
|
|
|
|
# Broken or unsupported ARM cores
|
|
|
|
depends on !BR2_cortex_a12
|
|
|
|
# Broken or unsupported PPC cores
|
2014-11-17 23:12:33 +01:00
|
|
|
depends on !BR2_powerpc_power8
|
2013-06-30 21:28:59 +02:00
|
|
|
select BR2_GCC_NEEDS_MPC
|
2014-05-19 21:48:13 +02:00
|
|
|
select BR2_GCC_SUPPORTS_GRAPHITE
|
2013-06-30 21:28:59 +02:00
|
|
|
|
2013-07-18 23:47:52 +02:00
|
|
|
config BR2_GCC_VERSION_4_8_ARC
|
2014-09-22 19:32:21 +02:00
|
|
|
bool "gcc 4.8-arc"
|
|
|
|
# Only supported architecture
|
2013-07-18 23:47:52 +02:00
|
|
|
depends on BR2_arc
|
|
|
|
select BR2_GCC_NEEDS_MPC
|
|
|
|
|
2014-04-24 03:00:30 +02:00
|
|
|
config BR2_GCC_VERSION_4_9_X
|
2014-09-22 19:32:21 +02:00
|
|
|
bool "gcc 4.9.x"
|
|
|
|
# Broken or unsupported architectures
|
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_bfin
|
2014-07-18 13:10:41 +02:00
|
|
|
# PR60102 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60102
|
2014-04-24 03:00:30 +02:00
|
|
|
select BR2_GCC_NEEDS_MPC
|
2014-05-19 21:48:13 +02:00
|
|
|
select BR2_GCC_SUPPORTS_GRAPHITE
|
2014-04-24 03:00:30 +02:00
|
|
|
|
2013-06-30 21:28:59 +02:00
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
|
|
|
|
bool
|
|
|
|
default y if !BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION
|
|
|
|
string
|
|
|
|
default "4.2.2-avr32-2.1.5" if BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
|
|
|
default "4.5.4" if BR2_GCC_VERSION_4_5_X
|
2014-06-12 23:00:50 +02:00
|
|
|
default "4.7.4" if BR2_GCC_VERSION_4_7_X
|
2014-12-19 19:33:27 +01:00
|
|
|
default "4.8.4" if BR2_GCC_VERSION_4_8_X
|
2014-10-30 12:48:07 +01:00
|
|
|
default "4.9.2" if BR2_GCC_VERSION_4_9_X
|
2014-08-21 19:33:56 +02:00
|
|
|
default "arc-2014.08" if BR2_GCC_VERSION_4_8_ARC
|
2013-06-30 21:28:59 +02:00
|
|
|
|
|
|
|
config BR2_EXTRA_GCC_CONFIG_OPTIONS
|
|
|
|
string "Additional gcc options"
|
|
|
|
default ""
|
|
|
|
help
|
gcc: use BR2_EXTRA_GCC_CONFIG_OPTIONS in gcc-initial and gcc-intermediate
When refactoring the internal toolchain backend logic, the code was
changed to pass the custom configure options given through
BR2_EXTRA_GCC_CONFIG_OPTIONS only for the gcc final pass, with the
idea that we're only interested by user customization for the final
compiler.
However, the beaglebone_defconfig was passing --with-float=hard
--with-fpu=vfpv3-d16 as BR2_EXTRA_GCC_CONFIG_OPTIONS, and since the
refactoring, it was causing build failures of the beaglebone_defconfig
(with messages saying that Busybox is built to use VFP arguments, but
libc/libm are not). This is due to the fact that the gcc intermediate,
which is used to build the C library, wasn't built to generate hard
float, while the final compiler was generating hard float.
So, we get back to the original situation where the options in
BR2_EXTRA_GCC_CONFIG_OPTIONS are passed to all of the compiler
passes. Of course, the specific case of hard float will be fixed by
following patches in this area, but the idea still remains: the three
gcc should have the same options, if those options affected the ABI of
the generated code.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-07-14 00:27:24 +02:00
|
|
|
Any additional gcc configure options you may want to
|
|
|
|
include. Those options are applied for all of the gcc
|
|
|
|
initial, gcc intermediate and gcc final passes.
|
2013-06-30 21:28:59 +02:00
|
|
|
|
2013-09-02 18:06:32 +02:00
|
|
|
config BR2_TOOLCHAIN_BUILDROOT_CXX
|
|
|
|
bool "Enable C++ support"
|
|
|
|
select BR2_INSTALL_LIBSTDCPP
|
|
|
|
depends on !(BR2_GCC_VERSION_4_2_2_AVR32_2_1_5 && \
|
|
|
|
BR2_TOOLCHAIN_BUILDROOT_LOCALE)
|
|
|
|
help
|
|
|
|
Enable this option if you want your toolchain to support the
|
|
|
|
C++ language and you want C++ libraries to be installed on
|
|
|
|
your target system.
|
|
|
|
|
|
|
|
comment "C++ support broken in uClibc with locale enabled with gcc 4.2"
|
|
|
|
depends on BR2_GCC_VERSION_4_2_2_AVR32_2_1_5 && BR2_TOOLCHAIN_BUILDROOT_LOCALE
|
|
|
|
|
2013-06-30 21:28:59 +02:00
|
|
|
config BR2_GCC_ENABLE_TLS
|
2013-06-30 21:29:12 +02:00
|
|
|
bool "Enable compiler tls support" if BR2_TOOLCHAIN_BUILDROOT_UCLIBC
|
2013-06-30 21:28:59 +02:00
|
|
|
default y
|
2013-09-02 18:06:33 +02:00
|
|
|
depends on BR2_PTHREADS_NATIVE || BR2_TOOLCHAIN_BUILDROOT_EGLIBC || BR2_TOOLCHAIN_BUILDROOT_GLIBC
|
2013-06-30 21:28:59 +02:00
|
|
|
help
|
|
|
|
Enable the compiler to generate code for accessing
|
|
|
|
thread local storage variables
|
|
|
|
|
|
|
|
config BR2_GCC_ENABLE_OPENMP
|
|
|
|
bool "Enable compiler OpenMP support"
|
2013-12-05 18:20:53 +01:00
|
|
|
depends on !BR2_PTHREADS_NONE && !BR2_avr32 && !BR2_arc && !BR2_microblaze
|
2013-06-30 21:28:59 +02:00
|
|
|
help
|
|
|
|
Enable OpenMP support for the compiler
|
2013-09-02 18:06:38 +02:00
|
|
|
|
|
|
|
config BR2_GCC_ENABLE_LIBMUDFLAP
|
|
|
|
bool "Enable libmudflap support"
|
|
|
|
# There are architectures, or specific configurations for
|
|
|
|
# which mudflap is not supported.
|
|
|
|
depends on !BR2_avr32 && !BR2_bfin && !BR2_ARM_INSTRUCTIONS_THUMB && !BR2_powerpc_SPE
|
2014-04-24 03:00:30 +02:00
|
|
|
depends on !BR2_GCC_VERSION_4_9_X
|
2013-09-02 18:06:38 +02:00
|
|
|
help
|
|
|
|
libmudflap is a gcc library used for the mudflap pointer
|
|
|
|
debugging functionality. It is only needed if you intend to
|
|
|
|
use the -fmudflap gcc flag.
|
|
|
|
|
|
|
|
See http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging and
|
|
|
|
the help of the gcc -fmudflap option for more details.
|
|
|
|
|
|
|
|
If you're unsure, leave this option disabled.
|
2014-05-19 21:48:13 +02:00
|
|
|
|
|
|
|
config BR2_GCC_ENABLE_GRAPHITE
|
|
|
|
bool "Enable graphite support"
|
|
|
|
depends on BR2_GCC_SUPPORTS_GRAPHITE
|
|
|
|
help
|
|
|
|
This option enables the graphite optimizations in the
|
|
|
|
compiler.
|