2013-06-30 21:28:59 +02:00
|
|
|
comment "GCC Options"
|
|
|
|
|
|
|
|
config BR2_GCC_NEEDS_MPC
|
|
|
|
bool
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "GCC compiler Version"
|
|
|
|
default BR2_GCC_VERSION_4_4_X if BR2_sparc_sparchfleon || BR2_sparc_sparchfleonv8 || BR2_sparc_sparcsfleon || BR2_sparc_sparcsfleonv8
|
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
|
2013-07-20 14:52:10 +02:00
|
|
|
default BR2_GCC_VERSION_4_5_X if BR2_bfin
|
2013-06-30 21:28:59 +02:00
|
|
|
default BR2_GCC_VERSION_4_7_X
|
|
|
|
help
|
|
|
|
Select the version of gcc you wish to use.
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
|
|
|
depends on BR2_avr32
|
|
|
|
bool "gcc 4.2.2-avr32-2.1.5"
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_3_X
|
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_cortex_a5 && !BR2_cortex_a7 && !BR2_cortex_a8 && !BR2_cortex_a9 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_powerpc_e300c2 && !BR2_powerpc_e300c3 && !BR2_powerpc_e500mc && !BR2_powerpc_464 && !BR2_powerpc_464fp && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 && !BR2_pj4
|
2013-07-16 10:03:16 +02:00
|
|
|
depends on !BR2_ARM_EABIHF
|
2013-06-30 21:28:59 +02:00
|
|
|
bool "gcc 4.3.x"
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_4_X
|
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_cortex_a5 && !BR2_cortex_a7 && !BR2_cortex_a15 && !BR2_x86_atom && !BR2_powerpc_476 && !BR2_powerpc_476fp && !BR2_fa526 && !BR2_pj4
|
|
|
|
bool "gcc 4.4.x"
|
2013-07-16 10:03:16 +02:00
|
|
|
# ARM EABIhf support appeared in gcc 4.6
|
|
|
|
depends on !BR2_ARM_EABIHF
|
|
|
|
# VFPv4 support appeared in gcc 4.5
|
|
|
|
depends on !BR2_ARM_FPU_VFPV4 && !BR2_ARM_FPU_VFPV4D16
|
2013-06-30 21:28:59 +02:00
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_5_X
|
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_cortex_a7 && !BR2_cortex_a15 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_fa526 && !BR2_pj4
|
|
|
|
select BR2_GCC_NEEDS_MPC
|
2013-07-16 10:03:16 +02:00
|
|
|
# ARM EABIhf support appeared in gcc 4.6
|
|
|
|
depends on !BR2_ARM_EABIHF
|
2013-06-30 21:28:59 +02:00
|
|
|
bool "gcc 4.5.x"
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_6_X
|
2013-07-20 14:52:10 +02:00
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_cortex_a7 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_pj4
|
2013-06-30 21:28:59 +02:00
|
|
|
select BR2_GCC_NEEDS_MPC
|
|
|
|
bool "gcc 4.6.x"
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_7_X
|
2013-07-20 14:52:10 +02:00
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8 && !BR2_pj4
|
2013-06-30 21:28:59 +02:00
|
|
|
select BR2_GCC_NEEDS_MPC
|
|
|
|
bool "gcc 4.7.x"
|
|
|
|
|
|
|
|
config BR2_GCC_VERSION_4_8_X
|
2013-07-20 14:52:10 +02:00
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_bfin && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8
|
2013-06-30 21:28:59 +02:00
|
|
|
select BR2_GCC_NEEDS_MPC
|
|
|
|
bool "gcc 4.8.x"
|
|
|
|
|
2013-07-18 23:47:52 +02:00
|
|
|
config BR2_GCC_VERSION_4_8_ARC
|
|
|
|
depends on BR2_arc
|
|
|
|
select BR2_GCC_NEEDS_MPC
|
|
|
|
bool "gcc 4.8-arc"
|
|
|
|
|
2013-06-30 21:28:59 +02:00
|
|
|
config BR2_GCC_VERSION_SNAP
|
|
|
|
depends on !BR2_arc && !BR2_avr32 && !BR2_sparc_sparchfleon && !BR2_sparc_sparchfleonv8 && !BR2_sparc_sparcsfleon && !BR2_sparc_sparcsfleonv8
|
|
|
|
select BR2_GCC_NEEDS_MPC
|
|
|
|
bool "gcc snapshot"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
|
|
|
|
bool
|
|
|
|
default y if !BR2_GCC_VERSION_4_2_2_AVR32_2_1_5
|
|
|
|
|
|
|
|
config BR2_GCC_SNAP_DATE
|
|
|
|
string "GCC snapshot date"
|
|
|
|
default "4.8-20120429"
|
|
|
|
depends on BR2_GCC_VERSION_SNAP
|
|
|
|
help
|
|
|
|
Enter snapshot date to use for gcc.
|
|
|
|
Format is: A.B-YYYYMMDD
|
|
|
|
|
|
|
|
A is GCC major version, for example 4.
|
|
|
|
B is GCC minor version, for example 7.
|
|
|
|
YYYYMMDD is snapshot date, for example 20110430.
|
|
|
|
|
|
|
|
This way we'd get version 4.7-20110430
|
|
|
|
|
|
|
|
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.3.6" if BR2_GCC_VERSION_4_3_X
|
|
|
|
default "4.4.7" if BR2_GCC_VERSION_4_4_X
|
|
|
|
default "4.5.4" if BR2_GCC_VERSION_4_5_X
|
|
|
|
default "4.6.4" if BR2_GCC_VERSION_4_6_X
|
|
|
|
default "4.7.3" if BR2_GCC_VERSION_4_7_X
|
2013-10-17 15:37:56 +02:00
|
|
|
default "4.8.2" if BR2_GCC_VERSION_4_8_X
|
2013-07-18 23:47:52 +02:00
|
|
|
default "4.8-arc" if BR2_GCC_VERSION_4_8_ARC
|
2013-09-02 22:07:53 +02:00
|
|
|
default BR2_GCC_SNAP_DATE if BR2_GCC_VERSION_SNAP
|
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_INSTALL_OBJC
|
2013-09-02 18:06:31 +02:00
|
|
|
bool "Enable Objective-C support"
|
2013-06-30 21:28:59 +02:00
|
|
|
depends on !BR2_avr32
|
2013-09-19 21:49:18 +02:00
|
|
|
depends on BR2_DEPRECATED
|
2013-06-30 21:28:59 +02:00
|
|
|
help
|
2013-09-02 18:06:31 +02:00
|
|
|
Enable the support for the Objective-C language in the
|
|
|
|
cross-compiler, and install the Objective-C runtime to the
|
|
|
|
target.
|
2013-06-30 21:28:59 +02:00
|
|
|
|
|
|
|
config BR2_INSTALL_FORTRAN
|
2013-09-02 18:06:30 +02:00
|
|
|
bool "Enable Fortran support"
|
2013-06-30 21:28:59 +02:00
|
|
|
depends on !BR2_avr32
|
2013-09-19 21:49:18 +02:00
|
|
|
depends on BR2_DEPRECATED
|
2013-06-30 21:28:59 +02:00
|
|
|
select BR2_PACKAGE_LIBMPFR
|
|
|
|
help
|
2013-09-02 18:06:30 +02:00
|
|
|
Enable the support for the Fortran language in the
|
|
|
|
cross-compiler, and install the Fortran runtime to the
|
|
|
|
target.
|
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"
|
|
|
|
depends on !BR2_PTHREADS_NONE && !BR2_avr32 && !BR2_arc
|
|
|
|
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
|
|
|
|
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.
|