030a9d39b1
External toolchain C++ cross-compiler fix package/Makefile.in resets CXX to "" in TARGET_CONFIGURE_OPTS if BR2_GCC_CROSS_CXX is not set to 'y'. However, when using an external toolchain, BR2_GCC_CROSS_CXX is not set even if the toolchain has a C++ cross-compiler. This patch adds a new BR2_GCC_CROSS_CXX option in the external toolchain configuration menu, so that just like BR2_INET_RPC, BR2_INET_IPV6 and the others, it can be set according to the external toolchain configuration. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
109 lines
2.8 KiB
Plaintext
109 lines
2.8 KiB
Plaintext
#
|
|
|
|
if BR2_TOOLCHAIN_EXTERNAL
|
|
comment "External Toolchain Options"
|
|
|
|
|
|
config BR2_TOOLCHAIN_EXTERNAL_LIB_C
|
|
string "The core C library from the external toolchain"
|
|
default "libc.so.0"
|
|
help
|
|
Specify the core C shared library found in the external
|
|
toolchain. This is required in addition to any other
|
|
libraries to be copied.
|
|
|
|
config BR2_TOOLCHAIN_EXTERNAL_LIBS
|
|
string "Libraries to copy from the external toolchain"
|
|
default "ld-uClibc.so.0 libcrypt.so.0 libdl.so.0 libgcc_s.so libm.so.0 libnsl.so.0 libpthread.so.0 libresolv.so.0 librt.so.0 libutil.so.0"
|
|
help
|
|
A space separated list of the shared libraries to be copied
|
|
from the external toolchain into the root filesystem. Only
|
|
the top-level name is needed, i.e. libc.so, libpthread.so as
|
|
the actual shared library symlinked to will be copied also.
|
|
|
|
config BR2_TOOLCHAIN_EXTERNAL_STRIP
|
|
bool
|
|
default y
|
|
prompt "Strip shared libraries"
|
|
help
|
|
Strip shared libraries copied from the external toolchain.
|
|
|
|
comment "Common Toolchain Options"
|
|
|
|
source "toolchain/gdb/Config.in.2"
|
|
|
|
config BR2_TOOLCHAIN_EXTERNAL_PATH
|
|
string "External toolchain path"
|
|
default "/path/to/staging_dir/usr"
|
|
help
|
|
Path to where the external toolchain is installed.
|
|
|
|
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
|
|
string "External toolchain prefix"
|
|
default "$(ARCH)-linux"
|
|
help
|
|
This the the external toolchain prefix. For example:
|
|
armeb-unknown-linux-gnu, mipsel-unknown-linux-gnu, etc.
|
|
|
|
choice
|
|
prompt "Thread library implementation"
|
|
default BR2_EXT_PTHREADS_OLD
|
|
help
|
|
Select the version of libpthreads used in the external toolchain.
|
|
|
|
config BR2_EXT_PTHREADS_NONE
|
|
bool
|
|
prompt "none"
|
|
|
|
config BR2_EXT_PTHREADS
|
|
bool
|
|
prompt "linuxthreads"
|
|
|
|
config BR2_EXT_PTHREADS_OLD
|
|
bool
|
|
prompt "linuxthreads (stable/old)"
|
|
|
|
config BR2_EXT_PTHREADS_NATIVE
|
|
bool
|
|
prompt "Native POSIX Threading (NPTL)"
|
|
endchoice
|
|
|
|
config BR2_LARGEFILE
|
|
bool "Toolchain supports large files (> 2 GB) ?"
|
|
depends on !BR2_cris
|
|
default y
|
|
help
|
|
Set this option if the external toolchain supports large
|
|
files (> 2 GB)
|
|
|
|
|
|
config BR2_INET_IPV6
|
|
bool "Toolchain supports IPv6 ?"
|
|
help
|
|
Set this option if the external toolchain supports IPv6.
|
|
|
|
config BR2_INET_RPC
|
|
bool "Toolchain supports RPC ?"
|
|
help
|
|
Set this option if the external toolchain supports RPC.
|
|
|
|
config BR2_SOFT_FLOAT
|
|
bool "Toolchain supports soft float ?"
|
|
depends on BR2_arm || BR2_armeb || BR2_mips || BR2_mipsel || BR2_powerpc
|
|
help
|
|
Set this option if the external toolchain supports soft float.
|
|
|
|
config BR2_GCC_CROSS_CXX
|
|
bool "Toolchain has C++ cross-compiler ?"
|
|
help
|
|
Set this option if the external toolchain has a C++
|
|
cross-compiler.
|
|
|
|
config BR2_TARGET_OPTIMIZATION
|
|
string "Target Optimizations"
|
|
default "-Os -pipe"
|
|
help
|
|
Optimizations to use when building for the target host.
|
|
|
|
endif
|