1 if BR2_TOOLCHAIN_EXTERNAL
3 comment "Toolchain External Options"
8 comment "glibc toolchains only available with shared lib support"
9 depends on BR2_STATIC_LIBS
11 # Kept toolchains sorted by architecture in order to use some toolchain
14 # Aarch64 (use Linaro toolchain by default)
15 source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in"
16 source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in"
19 source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in"
21 # ARM (use Linaro toolchain by default)
22 source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in"
23 source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in"
26 source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in"
28 # MIPS (use codesourcery toolchain by default)
29 source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in"
30 source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in"
31 source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in"
34 source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in"
37 source "toolchain/toolchain-external/toolchain-external-codesourcery-sh/Config.in"
39 # x86/x86_64 (use amd64 toolchain by default for AMD64)
40 source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in"
41 source "toolchain/toolchain-external/toolchain-external-codesourcery-x86/Config.in"
43 # Musl based toolchains (after all the others)
44 source "toolchain/toolchain-external/toolchain-external-musl-cross/Config.in"
46 # Kept last, so it remains the non-default choice, unless there isn't
47 # any available toolchain profile for the currently selected
49 source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
54 prompt "Toolchain origin"
55 # Keep compatibility with old defconfig files that are using
56 # custom toolchains, and which are therefore assuming that
57 # "preinstalled" in the default choice.
58 default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
60 config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
61 bool "Toolchain to be downloaded and installed"
63 Select this option if you want Buildroot to download and install the
64 toolchain. If you have selected a custom toolchain, specify the URL
65 in BR2_TOOLCHAIN_EXTERNAL_URL.
67 config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
68 bool "Pre-installed toolchain"
70 Select this option if you want to use a pre-installed toolchain.
71 Specify the path to this toolchain in BR2_TOOLCHAIN_EXTERNAL_PATH.
75 config BR2_TOOLCHAIN_EXTERNAL_PATH
76 string "Toolchain path"
77 default "/path/to/toolchain/usr"
78 depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
80 Path to where the external toolchain is installed.
82 config BR2_TOOLCHAIN_EXTERNAL_GLIBC
84 select BR2_TOOLCHAIN_USES_GLIBC
86 config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
88 select BR2_TOOLCHAIN_USES_UCLIBC
90 config BR2_TOOLCHAIN_EXTERNAL_MUSL
92 select BR2_TOOLCHAIN_USES_MUSL
93 # Compatibility headers: cdefs.h, queue.h
94 select BR2_PACKAGE_MUSL_COMPAT_HEADERS
96 # Make sure the virtual-package infra checks the provider
97 config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL
101 config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
104 config BR2_TOOLCHAIN_EXTERNAL_PREFIX
107 # Kept toolchains sorted as in the choice above
108 # The toolchain Config.in.options must define
109 # BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX
112 source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options"
113 source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"
116 source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
119 source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
120 source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options"
123 source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options"
126 source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options"
127 source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options"
128 source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options"
131 source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options"
134 source "toolchain/toolchain-external/toolchain-external-codesourcery-sh/Config.in.options"
137 source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options"
138 source "toolchain/toolchain-external/toolchain-external-codesourcery-x86/Config.in.options"
140 # Musl based toolchains
141 source "toolchain/toolchain-external/toolchain-external-musl-cross/Config.in.options"
144 source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
146 config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
147 bool "Copy gdb server to the Target"
148 depends on BR2_TOOLCHAIN_EXTERNAL
150 Copy the gdbserver provided by the external toolchain to the
153 endif # BR2_TOOLCHAIN_EXTERNAL