blob: 6759e5cefabe128db51b850deddaacc66e7940d3 [file] [log] [blame]
Bernhard Reutner-Fischer4b0d5a82007-09-26 21:12:38 +00001if BR2_TOOLCHAIN_EXTERNAL
"Steven J. Hill"02f71aa2007-02-06 18:19:38 +00002
Petri Gynther8218ab82016-08-08 11:34:59 -07003comment "Toolchain External Options"
4
Thomas Petazzoni6c492d52010-12-13 17:27:39 +01005choice
6 prompt "Toolchain"
7
Thomas Petazzoni416fd9c2016-06-08 23:40:54 +02008comment "glibc toolchains only available with shared lib support"
Thomas Petazzoni665e13c2014-12-03 22:41:29 +01009 depends on BR2_STATIC_LIBS
Thomas Petazzonied3f3e42013-11-11 18:57:32 +010010
Thomas Petazzonif1f2ae52016-11-07 02:20:00 +010011# Kept toolchains sorted by architecture in order to use some toolchain
12# as default choice
13
14# Aarch64 (use Linaro toolchain by default)
15source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in"
Thomas Petazzonif0f24982016-11-07 02:20:01 +010016source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in"
Thomas Petazzonif1f2ae52016-11-07 02:20:00 +010017
Thomas Petazzonia7ec3582016-11-07 02:20:16 +010018# ARC
19source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in"
20
Thomas Petazzoni21cb9d42016-11-07 02:20:02 +010021# ARM (use Linaro toolchain by default)
22source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in"
Thomas Petazzoni5b3c5b32016-11-07 02:20:03 +010023source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in"
Thomas Petazzoni21cb9d42016-11-07 02:20:02 +010024
Thomas Petazzonic428f452016-11-07 02:20:05 +010025# ARM big-endian
26source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in"
Yann E. MORIN997ef602015-10-27 00:49:40 +010027
Thomas Petazzoni1e1bef52016-11-07 02:20:07 +010028# MIPS (use codesourcery toolchain by default)
29source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in"
Thomas Petazzoni95c75fc2016-11-07 02:20:08 +010030source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in"
Thomas Petazzonic4a62fa2016-11-07 02:20:09 +010031source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in"
Thomas Petazzoni1e1bef52016-11-07 02:20:07 +010032
Thomas Petazzonif61661b2016-11-07 02:20:10 +010033# NIOSII
34source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in"
35
Baruch Siach06cac642017-06-16 06:32:47 +030036# x86_64
Romain Naoura66b8192016-11-07 02:20:12 +010037source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in"
38
Thomas Petazzoniec540922016-11-07 02:20:15 +010039# Kept last, so it remains the non-default choice, unless there isn't
40# any available toolchain profile for the currently selected
41# architecture.
42source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
43
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010044endchoice
45
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020046choice
47 prompt "Toolchain origin"
Thomas Petazzoni70194072012-07-22 20:57:26 +020048 # Keep compatibility with old defconfig files that are using
49 # custom toolchains, and which are therefore assuming that
50 # "preinstalled" in the default choice.
51 default BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED if BR2_TOOLCHAIN_EXTERNAL_CUSTOM
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020052
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010053config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020054 bool "Toolchain to be downloaded and installed"
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010055 help
Ricardo Martincoski6d4f66f2018-04-01 02:08:45 -030056 Select this option if you want Buildroot to download and
57 install the toolchain. If you have selected a custom
58 toolchain, specify the URL in BR2_TOOLCHAIN_EXTERNAL_URL.
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020059
60config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
61 bool "Pre-installed toolchain"
62 help
Ricardo Martincoski6d4f66f2018-04-01 02:08:45 -030063 Select this option if you want to use a pre-installed
64 toolchain. Specify the path to this toolchain in
65 BR2_TOOLCHAIN_EXTERNAL_PATH.
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020066
67endchoice
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010068
69config BR2_TOOLCHAIN_EXTERNAL_PATH
70 string "Toolchain path"
Arnout Vandecappelle392b0a22017-07-10 01:21:23 +020071 default ""
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020072 depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010073 help
Arnout Vandecappelle392b0a22017-07-10 01:21:23 +020074 Path to where the external toolchain is installed. The
75 compiler itself is expected to be in the "bin" subdirectory
76 of this path.
77
78 If empty, the compiler will be searched in $PATH.
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010079
Thomas Petazzoni643aa232009-05-29 18:37:41 +020080config BR2_TOOLCHAIN_EXTERNAL_GLIBC
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010081 bool
Thomas Petazzoni381616e2013-06-30 21:29:09 +020082 select BR2_TOOLCHAIN_USES_GLIBC
Thomas Petazzoni643aa232009-05-29 18:37:41 +020083
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010084config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
85 bool
Thomas Petazzoni381616e2013-06-30 21:29:09 +020086 select BR2_TOOLCHAIN_USES_UCLIBC
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010087
Thomas Petazzonia1d94aa2013-10-08 20:17:09 +020088config BR2_TOOLCHAIN_EXTERNAL_MUSL
89 bool
90 select BR2_TOOLCHAIN_USES_MUSL
Yann E. MORINe31eb722016-08-18 23:50:13 +020091 # Compatibility headers: cdefs.h, queue.h
92 select BR2_PACKAGE_MUSL_COMPAT_HEADERS
Thomas Petazzonia1d94aa2013-10-08 20:17:09 +020093
Arnout Vandecappelle1c99d702016-11-07 02:19:59 +010094# Make sure the virtual-package infra checks the provider
95config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL
96 bool
97 default y
98
99config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
100 string
101
Arnout Vandecappelleb5c00f02016-11-07 02:20:17 +0100102config BR2_TOOLCHAIN_EXTERNAL_PREFIX
103 string
104
Thomas Petazzonif1f2ae52016-11-07 02:20:00 +0100105# Kept toolchains sorted as in the choice above
106# The toolchain Config.in.options must define
107# BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX
108
109# Aarch64
110source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options"
Thomas Petazzonif0f24982016-11-07 02:20:01 +0100111source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"
Thomas Petazzonif1f2ae52016-11-07 02:20:00 +0100112
Thomas Petazzonia7ec3582016-11-07 02:20:16 +0100113# ARC
114source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
115
Thomas Petazzoni21cb9d42016-11-07 02:20:02 +0100116# ARM
117source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
Thomas Petazzoni5b3c5b32016-11-07 02:20:03 +0100118source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options"
Thomas Petazzoni21cb9d42016-11-07 02:20:02 +0100119
Thomas Petazzonic428f452016-11-07 02:20:05 +0100120# ARM big-endian
121source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options"
122
Thomas Petazzoni1e1bef52016-11-07 02:20:07 +0100123# MIPS
124source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options"
Thomas Petazzoni95c75fc2016-11-07 02:20:08 +0100125source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options"
Thomas Petazzonic4a62fa2016-11-07 02:20:09 +0100126source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options"
Thomas Petazzoni1e1bef52016-11-07 02:20:07 +0100127
Thomas Petazzonif61661b2016-11-07 02:20:10 +0100128# NIOSII
129source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options"
130
Baruch Siach06cac642017-06-16 06:32:47 +0300131# x86_64
Romain Naoura66b8192016-11-07 02:20:12 +0100132source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options"
133
Thomas Petazzoniec540922016-11-07 02:20:15 +0100134# Custom toolchains
135source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
Thomas Petazzonifff71172010-12-13 17:27:37 +0100136
Thomas Petazzonia0b6faa2013-04-07 00:04:33 +0000137config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
138 bool "Copy gdb server to the Target"
139 depends on BR2_TOOLCHAIN_EXTERNAL
140 help
141 Copy the gdbserver provided by the external toolchain to the
142 target.
143
Thomas Petazzoni6c492d52010-12-13 17:27:39 +0100144endif # BR2_TOOLCHAIN_EXTERNAL