blob: c4063b177b942d52b3413603522b25d9686e8902 [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
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020056 Select this option if you want Buildroot to download and install the
57 toolchain. If you have selected a custom toolchain, specify the URL
58 in BR2_TOOLCHAIN_EXTERNAL_URL.
59
60config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
61 bool "Pre-installed toolchain"
62 help
63 Select this option if you want to use a pre-installed toolchain.
64 Specify the path to this toolchain in BR2_TOOLCHAIN_EXTERNAL_PATH.
65
66endchoice
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010067
68config BR2_TOOLCHAIN_EXTERNAL_PATH
69 string "Toolchain path"
Arnout Vandecappelle392b0a22017-07-10 01:21:23 +020070 default ""
Thomas De Schampheleiredf0c1252012-06-22 07:42:38 +020071 depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010072 help
Arnout Vandecappelle392b0a22017-07-10 01:21:23 +020073 Path to where the external toolchain is installed. The
74 compiler itself is expected to be in the "bin" subdirectory
75 of this path.
76
77 If empty, the compiler will be searched in $PATH.
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010078
Thomas Petazzoni643aa232009-05-29 18:37:41 +020079config BR2_TOOLCHAIN_EXTERNAL_GLIBC
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010080 bool
Thomas Petazzoni381616e2013-06-30 21:29:09 +020081 select BR2_TOOLCHAIN_USES_GLIBC
Thomas Petazzoni643aa232009-05-29 18:37:41 +020082
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010083config BR2_TOOLCHAIN_EXTERNAL_UCLIBC
84 bool
Thomas Petazzoni381616e2013-06-30 21:29:09 +020085 select BR2_TOOLCHAIN_USES_UCLIBC
Thomas Petazzoni6c492d52010-12-13 17:27:39 +010086
Thomas Petazzonia1d94aa2013-10-08 20:17:09 +020087config BR2_TOOLCHAIN_EXTERNAL_MUSL
88 bool
89 select BR2_TOOLCHAIN_USES_MUSL
Yann E. MORINe31eb722016-08-18 23:50:13 +020090 # Compatibility headers: cdefs.h, queue.h
91 select BR2_PACKAGE_MUSL_COMPAT_HEADERS
Thomas Petazzonia1d94aa2013-10-08 20:17:09 +020092
Arnout Vandecappelle1c99d702016-11-07 02:19:59 +010093# Make sure the virtual-package infra checks the provider
94config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL
95 bool
96 default y
97
98config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
99 string
100
Arnout Vandecappelleb5c00f02016-11-07 02:20:17 +0100101config BR2_TOOLCHAIN_EXTERNAL_PREFIX
102 string
103
Thomas Petazzonif1f2ae52016-11-07 02:20:00 +0100104# Kept toolchains sorted as in the choice above
105# The toolchain Config.in.options must define
106# BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX
107
108# Aarch64
109source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options"
Thomas Petazzonif0f24982016-11-07 02:20:01 +0100110source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"
Thomas Petazzonif1f2ae52016-11-07 02:20:00 +0100111
Thomas Petazzonia7ec3582016-11-07 02:20:16 +0100112# ARC
113source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
114
Thomas Petazzoni21cb9d42016-11-07 02:20:02 +0100115# ARM
116source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
Thomas Petazzoni5b3c5b32016-11-07 02:20:03 +0100117source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options"
Thomas Petazzoni21cb9d42016-11-07 02:20:02 +0100118
Thomas Petazzonic428f452016-11-07 02:20:05 +0100119# ARM big-endian
120source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options"
121
Thomas Petazzoni1e1bef52016-11-07 02:20:07 +0100122# MIPS
123source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options"
Thomas Petazzoni95c75fc2016-11-07 02:20:08 +0100124source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options"
Thomas Petazzonic4a62fa2016-11-07 02:20:09 +0100125source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options"
Thomas Petazzoni1e1bef52016-11-07 02:20:07 +0100126
Thomas Petazzonif61661b2016-11-07 02:20:10 +0100127# NIOSII
128source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options"
129
Baruch Siach06cac642017-06-16 06:32:47 +0300130# x86_64
Romain Naoura66b8192016-11-07 02:20:12 +0100131source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options"
132
Thomas Petazzoniec540922016-11-07 02:20:15 +0100133# Custom toolchains
134source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options"
Thomas Petazzonifff71172010-12-13 17:27:37 +0100135
Thomas Petazzonia0b6faa2013-04-07 00:04:33 +0000136config BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY
137 bool "Copy gdb server to the Target"
138 depends on BR2_TOOLCHAIN_EXTERNAL
139 help
140 Copy the gdbserver provided by the external toolchain to the
141 target.
142
Thomas Petazzoni6c492d52010-12-13 17:27:39 +0100143endif # BR2_TOOLCHAIN_EXTERNAL