2013-11-22 14:30:40 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2005-01-16 11:43:02 +00:00
|
|
|
#
|
2013-11-22 14:30:40 +00:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig TARGET_OPTIONS
|
|
|
|
bool "Target Options" if DEVEL
|
|
|
|
|
|
|
|
config TARGET_OPTIMIZATION
|
|
|
|
string "Target Optimizations" if TARGET_OPTIONS
|
|
|
|
default DEFAULT_TARGET_OPTIMIZATION
|
|
|
|
help
|
|
|
|
Optimizations to use when building for the target host.
|
|
|
|
|
|
|
|
config SOFT_FLOAT
|
|
|
|
bool "Use software floating point by default" if TARGET_OPTIONS
|
2013-11-29 09:24:07 +00:00
|
|
|
default y if !HAS_FPU
|
|
|
|
depends on arm || armeb || powerpc || mipsel || mips || mips64el || mips64
|
2013-11-22 14:30:40 +00:00
|
|
|
help
|
|
|
|
If your target CPU does not have a Floating Point Unit (FPU) or a
|
|
|
|
kernel FPU emulator, but you still wish to support floating point
|
|
|
|
functions, then everything will need to be compiled with soft floating
|
|
|
|
point support (-msoft-float).
|
|
|
|
|
|
|
|
Most people will answer N.
|
|
|
|
|
|
|
|
config USE_MIPS16
|
|
|
|
bool "Build packages with MIPS16 instructions" if TARGET_OPTIONS
|
|
|
|
depends on HAS_MIPS16
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
If your target CPU does support the MIPS16 instruction set
|
|
|
|
and you want to use it for packages, enable this option.
|
|
|
|
MIPS16 produces smaller binaries thus reducing pressure on
|
|
|
|
caches and TLB.
|
|
|
|
|
|
|
|
Most people will answer N.
|
|
|
|
|
2021-10-17 15:50:53 +00:00
|
|
|
|
2021-11-01 14:36:36 +00:00
|
|
|
choice BPF_TOOLCHAIN
|
|
|
|
prompt "BPF toolchain" if DEVEL
|
2021-11-04 14:16:07 +00:00
|
|
|
default BPF_TOOLCHAIN_BUILD_LLVM if BUILDBOT
|
2021-11-04 19:04:44 +00:00
|
|
|
default BPF_TOOLCHAIN_PREBUILT if HAS_PREBUILT_LLVM_TOOLCHAIN
|
2021-11-01 14:36:36 +00:00
|
|
|
default BPF_TOOLCHAIN_NONE
|
|
|
|
|
|
|
|
config BPF_TOOLCHAIN_NONE
|
|
|
|
bool "None"
|
|
|
|
|
2021-11-04 19:04:44 +00:00
|
|
|
config BPF_TOOLCHAIN_PREBUILT
|
|
|
|
bool "Use prebuilt LLVM toolchain"
|
|
|
|
depends on HAS_PREBUILT_LLVM_TOOLCHAIN
|
|
|
|
select USE_LLVM_PREBUILT
|
|
|
|
|
2021-11-01 14:36:36 +00:00
|
|
|
config BPF_TOOLCHAIN_HOST
|
2021-11-01 17:40:03 +00:00
|
|
|
select USE_LLVM_HOST
|
2021-11-01 14:36:36 +00:00
|
|
|
bool "Use host LLVM toolchain"
|
|
|
|
|
|
|
|
config BPF_TOOLCHAIN_BUILD_LLVM
|
2021-11-01 17:40:03 +00:00
|
|
|
select USE_LLVM_BUILD
|
2021-11-01 14:36:36 +00:00
|
|
|
bool "Build LLVM toolchain for eBPF"
|
|
|
|
help
|
|
|
|
If enabled, a LLVM toolchain for building eBPF binaries will be built.
|
|
|
|
If this is not enabled, eBPF packages can only be built if the host
|
|
|
|
has a suitable toolchain
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BPF_TOOLCHAIN_HOST_PATH
|
|
|
|
string
|
|
|
|
depends on BPF_TOOLCHAIN_HOST
|
|
|
|
prompt "Host LLVM toolchain path (prefix)" if DEVEL
|
|
|
|
default "/usr/local/opt/llvm" if HOST_OS_MACOS
|
|
|
|
default ""
|
2009-09-23 02:27:38 +00:00
|
|
|
|
|
|
|
menuconfig EXTERNAL_TOOLCHAIN
|
2006-08-10 19:25:26 +00:00
|
|
|
bool
|
2009-09-23 02:27:38 +00:00
|
|
|
prompt "Use external toolchain" if DEVEL
|
2006-08-10 19:25:26 +00:00
|
|
|
help
|
2019-06-05 17:16:52 +00:00
|
|
|
If enabled, the buildroot will compile using an existing toolchain instead of
|
2014-09-13 20:26:51 +00:00
|
|
|
compiling one.
|
2009-09-23 02:27:38 +00:00
|
|
|
|
|
|
|
config NATIVE_TOOLCHAIN
|
|
|
|
bool
|
|
|
|
prompt "Use host's toolchain" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN
|
2009-09-23 02:27:38 +00:00
|
|
|
select NO_STRIP
|
|
|
|
help
|
2019-06-05 17:16:52 +00:00
|
|
|
If enabled, the buildroot will compile using the native toolchain for your
|
2014-09-13 20:26:51 +00:00
|
|
|
host instead of compiling one.
|
2009-09-23 02:27:38 +00:00
|
|
|
|
|
|
|
config TARGET_NAME
|
|
|
|
string
|
|
|
|
prompt "Target name" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2014-11-24 06:33:13 +00:00
|
|
|
default "aarch64-unknown-linux-gnu" if aarch64
|
|
|
|
default "aarch64_be-unknown-linux-gnu" if aarch64_be
|
2009-09-23 02:27:38 +00:00
|
|
|
default "arm-unknown-linux-gnu" if arm
|
|
|
|
default "armeb-unknown-linux-gnu" if armeb
|
|
|
|
default "i486-unknown-linux-gnu" if i386
|
2024-01-06 19:10:45 +00:00
|
|
|
default "loongarch64-unknown-linux-gnu" if loongarch64
|
2009-09-23 02:27:38 +00:00
|
|
|
default "mips-unknown-linux-gnu" if mips
|
|
|
|
default "mipsel-unknown-linux-gnu" if mipsel
|
|
|
|
default "powerpc-unknown-linux-gnu" if powerpc
|
|
|
|
default "x86_64-unknown-linux-gnu" if x86_64
|
|
|
|
|
|
|
|
config TOOLCHAIN_PREFIX
|
|
|
|
string
|
|
|
|
prompt "Toolchain prefix" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2014-11-24 06:33:13 +00:00
|
|
|
default "aarch64-unknown-linux-gnu" if aarch64
|
|
|
|
default "aarch64_be-unknown-linux-gnu" if aarch64_be
|
2009-09-23 02:27:38 +00:00
|
|
|
default "arm-unknown-linux-gnu-" if arm
|
|
|
|
default "armeb-unknown-linux-gnu-" if armeb
|
|
|
|
default "i486-unknown-linux-gnu-" if i386
|
2024-01-06 19:10:45 +00:00
|
|
|
default "loongarch64-unknown-linux-gnu-" if loongarch64
|
2009-09-23 02:27:38 +00:00
|
|
|
default "mips-unknown-linux-gnu-" if mips
|
|
|
|
default "mipsel-unknown-linux-gnu-" if mipsel
|
|
|
|
default "powerpc-unknown-linux-gnu-" if powerpc
|
|
|
|
default "x86_64-unknown-linux-gnu-" if x86_64
|
|
|
|
|
|
|
|
config TOOLCHAIN_ROOT
|
|
|
|
string
|
|
|
|
prompt "Toolchain root" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2014-11-24 06:33:13 +00:00
|
|
|
default "/opt/cross/aarch64-unknown-linux-gnu" if aarch64
|
|
|
|
default "/opt/cross/aarch64_be-unknown-linux-gnu" if aarch64_be
|
2009-09-23 02:27:38 +00:00
|
|
|
default "/opt/cross/arm-unknown-linux-gnu" if arm
|
|
|
|
default "/opt/cross/armeb-unknown-linux-gnu" if armeb
|
|
|
|
default "/opt/cross/i486-unknown-linux-gnu" if i386
|
2024-01-06 19:10:45 +00:00
|
|
|
default "/opt/cross/loongarch64-unknown-linux-gnu" if loongarch64
|
2009-09-23 02:27:38 +00:00
|
|
|
default "/opt/cross/mips-unknown-linux-gnu" if mips
|
|
|
|
default "/opt/cross/mipsel-unknown-linux-gnu" if mipsel
|
|
|
|
default "/opt/cross/powerpc-unknown-linux-gnu" if powerpc
|
|
|
|
default "/opt/cross/x86_64-unknown-linux-gnu" if x86_64
|
|
|
|
|
2016-09-19 19:59:32 +00:00
|
|
|
choice TOOLCHAIN_LIBC_TYPE
|
2013-02-20 15:06:10 +00:00
|
|
|
prompt "Toolchain libc" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2016-09-19 19:59:32 +00:00
|
|
|
default EXTERNAL_TOOLCHAIN_LIBC_USE_MUSL
|
2013-02-20 15:06:10 +00:00
|
|
|
help
|
2014-09-13 20:26:51 +00:00
|
|
|
Specify the libc type used by the external toolchain. The given value
|
|
|
|
is passed as -m flag to all gcc and g++ invocations. This is mainly
|
|
|
|
intended for multilib toolchains which support glibc and uclibc at
|
|
|
|
the same time. If no value is specified, no -m flag is passed.
|
2013-02-20 15:06:10 +00:00
|
|
|
|
2016-09-19 19:59:32 +00:00
|
|
|
config EXTERNAL_TOOLCHAIN_LIBC_USE_GLIBC
|
|
|
|
bool "glibc"
|
|
|
|
select USE_GLIBC
|
|
|
|
|
|
|
|
config EXTERNAL_TOOLCHAIN_LIBC_USE_MUSL
|
|
|
|
bool "musl"
|
|
|
|
select USE_MUSL
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2023-10-19 12:19:09 +00:00
|
|
|
config EXTERNAL_GCC_VERSION
|
|
|
|
string
|
|
|
|
prompt "External Toolchain GCC Version" if DEVEL
|
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
|
|
|
help
|
|
|
|
Manually specify the GCC version used by the selected
|
|
|
|
external toolchain.
|
|
|
|
|
2016-09-19 19:59:32 +00:00
|
|
|
config TOOLCHAIN_LIBC
|
|
|
|
string
|
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
|
|
|
default "glibc" if EXTERNAL_TOOLCHAIN_LIBC_USE_GLIBC
|
|
|
|
default "musl" if EXTERNAL_TOOLCHAIN_LIBC_USE_MUSL
|
|
|
|
|
2009-09-23 02:27:38 +00:00
|
|
|
config TOOLCHAIN_BIN_PATH
|
|
|
|
string
|
|
|
|
prompt "Toolchain program path" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2009-09-23 02:27:38 +00:00
|
|
|
default "./usr/bin ./bin"
|
|
|
|
help
|
2014-09-13 20:26:51 +00:00
|
|
|
Specify additional directories searched for toolchain binaries
|
|
|
|
(override PATH). Use ./DIR for directories relative to the root above.
|
2009-09-23 02:27:38 +00:00
|
|
|
|
|
|
|
config TOOLCHAIN_INC_PATH
|
|
|
|
string
|
|
|
|
prompt "Toolchain include path" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2022-09-11 22:31:43 +00:00
|
|
|
default "./usr/include ./include/fortify ./include" if EXTERNAL_TOOLCHAIN_LIBC_USE_MUSL
|
2009-09-23 02:27:38 +00:00
|
|
|
default "./usr/include ./include"
|
|
|
|
help
|
2014-09-13 20:26:51 +00:00
|
|
|
Specify additional directories searched for header files (override
|
|
|
|
CPPFLAGS). Use ./DIR for directories relative to the root above.
|
2009-09-23 02:27:38 +00:00
|
|
|
|
|
|
|
config TOOLCHAIN_LIB_PATH
|
|
|
|
string
|
|
|
|
prompt "Toolchain library path" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN
|
2009-09-23 02:27:38 +00:00
|
|
|
default "./usr/lib ./lib"
|
|
|
|
help
|
2014-09-13 20:26:51 +00:00
|
|
|
Specify additional directories searched for libraries (override LDFLAGS).
|
|
|
|
Use ./DIR for directories relative to the root above.
|
2009-09-23 02:27:38 +00:00
|
|
|
|
|
|
|
config NEED_TOOLCHAIN
|
|
|
|
bool
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on DEVEL
|
2009-09-23 02:27:38 +00:00
|
|
|
default y if !EXTERNAL_TOOLCHAIN
|
2005-01-16 11:43:02 +00:00
|
|
|
|
2006-04-20 23:03:42 +00:00
|
|
|
menuconfig TOOLCHAINOPTS
|
2009-09-23 02:27:38 +00:00
|
|
|
bool "Toolchain Options" if DEVEL
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on NEED_TOOLCHAIN
|
2006-04-20 23:03:42 +00:00
|
|
|
|
2008-04-12 23:14:42 +00:00
|
|
|
menuconfig EXTRA_TARGET_ARCH
|
|
|
|
bool
|
|
|
|
prompt "Enable an extra toolchain target architecture" if TOOLCHAINOPTS
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on !sparc
|
2008-04-12 23:14:42 +00:00
|
|
|
help
|
|
|
|
Some builds may require a 'biarch' toolchain. This option
|
|
|
|
allows you to specify an additional target arch.
|
|
|
|
|
|
|
|
Most people will answer N here.
|
|
|
|
|
|
|
|
config EXTRA_TARGET_ARCH_NAME
|
|
|
|
string
|
|
|
|
prompt "Extra architecture name" if EXTRA_TARGET_ARCH
|
|
|
|
help
|
|
|
|
Specify the cpu name (eg powerpc64 or x86_64) of the
|
|
|
|
additional target architecture.
|
|
|
|
|
|
|
|
config EXTRA_TARGET_ARCH_OPTS
|
|
|
|
string
|
|
|
|
prompt "Extra architecture compiler options" if EXTRA_TARGET_ARCH
|
|
|
|
help
|
|
|
|
If you're specifying an addition target architecture,
|
|
|
|
you'll probably need to also provide options to make
|
|
|
|
the compiler use this alternate arch.
|
|
|
|
|
|
|
|
For example, if you're building a compiler that can build
|
|
|
|
both powerpc and powerpc64 binaries, you'll need to
|
|
|
|
specify -m64 here.
|
|
|
|
|
2013-04-05 12:36:23 +00:00
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "MIPS64 user-land ABI" if TOOLCHAINOPTS && (mips64 || mips64el)
|
|
|
|
default MIPS64_ABI_N64
|
|
|
|
help
|
|
|
|
MIPS64 supports 3 different user-land ABIs: o32 (legacy),
|
|
|
|
n32 and n64.
|
|
|
|
|
|
|
|
config MIPS64_ABI_N64
|
|
|
|
bool "n64"
|
|
|
|
|
|
|
|
config MIPS64_ABI_N32
|
2016-02-26 10:56:02 +00:00
|
|
|
depends on !LIBC_USE_MUSL
|
2013-04-05 12:36:23 +00:00
|
|
|
bool "n32"
|
|
|
|
|
|
|
|
config MIPS64_ABI_O32
|
|
|
|
bool "o32"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2009-09-10 14:32:36 +00:00
|
|
|
comment "Binary tools"
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on TOOLCHAINOPTS
|
2009-09-10 14:32:36 +00:00
|
|
|
|
2005-01-16 11:43:02 +00:00
|
|
|
source "toolchain/binutils/Config.in"
|
2009-09-10 14:32:36 +00:00
|
|
|
|
2020-11-24 22:15:09 +00:00
|
|
|
config DWARVES
|
|
|
|
bool
|
|
|
|
prompt "Build pahole" if TOOLCHAINOPTS
|
|
|
|
depends on !HOST_OS_MACOS
|
|
|
|
help
|
|
|
|
Enable if you want to build pahole and the dwarves tools.
|
|
|
|
|
2009-09-10 14:32:36 +00:00
|
|
|
comment "Compiler"
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on TOOLCHAINOPTS
|
2009-09-10 14:32:36 +00:00
|
|
|
|
2005-01-16 11:43:02 +00:00
|
|
|
source "toolchain/gcc/Config.in"
|
2009-01-08 01:49:11 +00:00
|
|
|
|
2018-06-28 23:28:02 +00:00
|
|
|
config NASM
|
2016-08-19 15:49:09 +00:00
|
|
|
bool
|
|
|
|
depends on ( i386 || x86_64 )
|
2018-06-28 23:28:02 +00:00
|
|
|
prompt "Build nasm" if TOOLCHAINOPTS
|
2016-08-19 15:49:09 +00:00
|
|
|
default y
|
|
|
|
help
|
2018-06-28 23:28:02 +00:00
|
|
|
Enable if you want to build nasm
|
2016-08-19 15:49:09 +00:00
|
|
|
|
2009-09-10 14:32:36 +00:00
|
|
|
comment "C Library"
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on TOOLCHAINOPTS
|
2009-09-10 14:32:36 +00:00
|
|
|
|
2009-01-08 01:49:11 +00:00
|
|
|
choice
|
2009-09-10 14:32:36 +00:00
|
|
|
prompt "C Library implementation" if TOOLCHAINOPTS
|
2020-12-12 03:18:33 +00:00
|
|
|
default LIBC_USE_GLIBC if arc
|
2015-06-15 23:05:08 +00:00
|
|
|
default LIBC_USE_MUSL
|
2009-01-08 01:49:11 +00:00
|
|
|
help
|
2009-09-10 14:32:36 +00:00
|
|
|
Select the C library implementation.
|
2009-01-08 01:49:11 +00:00
|
|
|
|
2015-03-12 19:50:57 +00:00
|
|
|
config LIBC_USE_GLIBC
|
2016-08-29 12:16:14 +00:00
|
|
|
bool "Use glibc"
|
2015-03-12 19:50:57 +00:00
|
|
|
select USE_GLIBC
|
2013-04-18 12:05:08 +00:00
|
|
|
|
|
|
|
config LIBC_USE_MUSL
|
|
|
|
select USE_MUSL
|
2014-11-24 06:33:13 +00:00
|
|
|
bool "Use musl"
|
2019-07-18 01:57:40 +00:00
|
|
|
depends on !arc
|
2012-11-23 20:02:29 +00:00
|
|
|
|
2009-01-08 01:49:11 +00:00
|
|
|
endchoice
|
|
|
|
|
2019-01-22 08:50:09 +00:00
|
|
|
source "toolchain/musl/Config.in"
|
2005-01-16 11:43:02 +00:00
|
|
|
|
2009-09-10 14:32:36 +00:00
|
|
|
comment "Debuggers"
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on TOOLCHAINOPTS
|
2009-09-10 14:32:36 +00:00
|
|
|
|
2006-05-31 23:29:05 +00:00
|
|
|
config GDB
|
|
|
|
bool
|
|
|
|
prompt "Build gdb" if TOOLCHAINOPTS
|
2013-05-30 22:04:54 +00:00
|
|
|
default y if !EXTERNAL_TOOLCHAIN
|
2006-05-31 23:29:05 +00:00
|
|
|
help
|
2014-09-13 20:26:51 +00:00
|
|
|
Enable if you want to build the gdb.
|
2006-05-31 23:29:05 +00:00
|
|
|
|
2021-05-28 16:35:40 +00:00
|
|
|
config GDB_PYTHON
|
|
|
|
bool
|
|
|
|
depends on GDB
|
|
|
|
prompt "Build gdb with python binding"
|
|
|
|
|
|
|
|
help
|
|
|
|
Enable the python bindings for GDB to allow using python in the gdb shell.
|
|
|
|
|
2021-11-01 17:40:03 +00:00
|
|
|
config HAS_BPF_TOOLCHAIN
|
|
|
|
bool
|
|
|
|
|
2021-11-04 19:04:44 +00:00
|
|
|
config HAS_PREBUILT_LLVM_TOOLCHAIN
|
|
|
|
def_bool $(shell, [ -f llvm-bpf/.llvm-version ] && echo y || echo n)
|
|
|
|
|
2021-11-01 17:40:03 +00:00
|
|
|
config USE_LLVM_HOST
|
|
|
|
select HAS_BPF_TOOLCHAIN
|
|
|
|
bool
|
|
|
|
|
2021-11-04 19:04:44 +00:00
|
|
|
config USE_LLVM_PREBUILT
|
|
|
|
select HAS_BPF_TOOLCHAIN
|
|
|
|
default y if !DEVEL && !BUILDBOT && HAS_PREBUILT_LLVM_TOOLCHAIN
|
|
|
|
bool
|
|
|
|
|
2021-11-01 17:40:03 +00:00
|
|
|
config USE_LLVM_BUILD
|
2021-11-04 14:16:07 +00:00
|
|
|
default y if !DEVEL && BUILDBOT
|
2021-11-01 17:40:03 +00:00
|
|
|
select HAS_BPF_TOOLCHAIN
|
|
|
|
bool
|
|
|
|
|
2015-03-12 19:50:57 +00:00
|
|
|
config USE_GLIBC
|
2020-12-22 23:32:41 +00:00
|
|
|
default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && (arc)
|
2013-04-18 12:05:08 +00:00
|
|
|
bool
|
|
|
|
|
|
|
|
config USE_MUSL
|
2019-07-18 01:57:40 +00:00
|
|
|
default y if !TOOLCHAINOPTS && !EXTERNAL_TOOLCHAIN && !NATIVE_TOOLCHAIN && !(arc)
|
2013-04-18 12:05:08 +00:00
|
|
|
bool
|
|
|
|
|
2018-01-07 17:47:21 +00:00
|
|
|
config SSP_SUPPORT
|
2020-06-15 21:14:04 +00:00
|
|
|
default y if !PKG_CC_STACKPROTECTOR_NONE
|
2018-01-07 17:47:21 +00:00
|
|
|
bool
|
|
|
|
|
2012-01-08 15:34:23 +00:00
|
|
|
config USE_EXTERNAL_LIBC
|
|
|
|
bool
|
|
|
|
default y if EXTERNAL_TOOLCHAIN || NATIVE_TOOLCHAIN
|
2009-01-08 01:49:11 +00:00
|
|
|
|
2015-11-10 12:03:59 +00:00
|
|
|
source "toolchain/binutils/Config.version"
|
2006-06-15 16:40:06 +00:00
|
|
|
source "toolchain/gcc/Config.version"
|
2009-01-08 01:49:11 +00:00
|
|
|
|
|
|
|
config LIBC
|
|
|
|
string
|
2015-03-12 19:50:57 +00:00
|
|
|
default "glibc" if USE_GLIBC
|
2012-11-23 20:02:29 +00:00
|
|
|
default "musl" if USE_MUSL
|
2009-01-08 01:49:11 +00:00
|
|
|
|
|
|
|
config TARGET_SUFFIX
|
|
|
|
string
|
2015-03-12 19:50:57 +00:00
|
|
|
default "gnueabi" if USE_GLIBC && (arm || armeb)
|
|
|
|
default "gnu" if USE_GLIBC && !(arm || armeb)
|
2012-11-23 20:02:29 +00:00
|
|
|
default "muslgnueabi" if USE_MUSL && (arm || armeb)
|
|
|
|
default "musl" if USE_MUSL && !(arm || armeb)
|
2013-04-05 12:36:23 +00:00
|
|
|
|
|
|
|
config MIPS64_ABI
|
2013-04-17 15:36:41 +00:00
|
|
|
depends on mips64 || mips64el
|
2013-04-05 12:36:23 +00:00
|
|
|
string
|
|
|
|
default "64" if MIPS64_ABI_N64
|
|
|
|
default "n32" if MIPS64_ABI_N32
|
|
|
|
default "32" if MIPS64_ABI_O32
|
|
|
|
default "64"
|