1if BR2_TOOLCHAIN_EXTERNAL 2 3comment "Toolchain External Options" 4 5choice 6 prompt "Toolchain" 7 8comment "glibc toolchains only available with shared lib support" 9 depends on BR2_STATIC_LIBS 10 11# Kept toolchains sorted by architecture in order to use some toolchain 12# as default choice 13 14# Aarch64 (use ARM toolchain by default) 15source "toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in" 16source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in" 17source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in" 18 19# Aarch64 big-endian 20source "toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in" 21source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in" 22 23# ARC 24source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in" 25 26# Andes 27source "toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in" 28 29# ARM (use ARM toolchain by default) 30source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in" 31source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in" 32source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in" 33 34# ARM big-endian 35source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in" 36 37# MIPS (use codesourcery toolchain by default) 38source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in" 39source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in" 40source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in" 41 42# NIOSII 43source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in" 44 45# Bootlin toolchains, available for virtually all architectures 46source "toolchain/toolchain-external/toolchain-external-bootlin/Config.in" 47 48# Kept last, so it remains the non-default choice, unless there isn't 49# any available toolchain profile for the currently selected 50# architecture, but before toolchains from br2-external trees. 51source "toolchain/toolchain-external/toolchain-external-custom/Config.in" 52 53# Toolchains from br2-external trees, if any 54source "$BR2_BASE_DIR/.br2-external.in.toolchains" 55 56endchoice 57 58choice 59 prompt "Toolchain origin" 60 # Keep compatibility with old defconfig files that are using 61 # custom toolchains, and which are therefore assuming that 62 # "preinstalled" in the default choice. 63 default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM 64 65config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD 66 bool "Toolchain to be downloaded and installed" 67 help 68 Select this option if you want Buildroot to download and 69 install the toolchain. If you have selected a custom 70 toolchain, specify the URL in BR2_TOOLCHAIN_EXTERNAL_URL. 71 72config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED 73 bool "Pre-installed toolchain" 74 help 75 Select this option if you want to use a pre-installed 76 toolchain. Specify the path to this toolchain in 77 BR2_TOOLCHAIN_EXTERNAL_PATH. 78 79endchoice 80 81config BR2_TOOLCHAIN_EXTERNAL_PATH 82 string "Toolchain path" 83 default "" 84 depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED 85 help 86 Path to where the external toolchain is installed. The 87 compiler itself is expected to be in the "bin" subdirectory 88 of this path. 89 90 If empty, the compiler will be searched in $PATH. 91 92config BR2_TOOLCHAIN_EXTERNAL_GLIBC 93 bool 94 select BR2_TOOLCHAIN_USES_GLIBC 95 96config BR2_TOOLCHAIN_EXTERNAL_UCLIBC 97 bool 98 select BR2_TOOLCHAIN_USES_UCLIBC 99 100config BR2_TOOLCHAIN_EXTERNAL_MUSL 101 bool 102 select BR2_TOOLCHAIN_USES_MUSL 103 # Compatibility headers: cdefs.h, queue.h 104 select BR2_PACKAGE_MUSL_COMPAT_HEADERS 105 106# Make sure the virtual-package infra checks the provider 107config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL 108 bool 109 default y 110 111config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL 112 string 113 114config BR2_TOOLCHAIN_EXTERNAL_PREFIX 115 string 116 117# Kept toolchains sorted as in the choice above 118# The toolchain Config.in.options must define 119# BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX 120 121# Aarch64 122source "toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in.options" 123source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options" 124source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options" 125 126# Aarch64 big-endian 127source "toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in.options" 128source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in.options" 129 130# ARC 131source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options" 132 133# Andes 134source "toolchain/toolchain-external/toolchain-external-andes-nds32/Config.in.options" 135 136# ARM 137source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options" 138source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options" 139source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options" 140 141# ARM big-endian 142source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options" 143 144# MIPS 145source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options" 146source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options" 147source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options" 148 149# NIOSII 150source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options" 151 152# Bootlin toolchains 153source "toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options" 154 155# Custom toolchains 156source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options" 157 158config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY 159 bool "Copy gdb server to the Target" 160 depends on BR2_TOOLCHAIN_EXTERNAL 161 help 162 Copy the gdbserver provided by the external toolchain to the 163 target. 164 165endif # BR2_TOOLCHAIN_EXTERNAL 166