Bernhard Reutner-Fischer | 4b0d5a8 | 2007-09-26 21:12:38 +0000 | [diff] [blame] | 1 | if BR2_TOOLCHAIN_EXTERNAL |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 2 | |
Petri Gynther | 8218ab8 | 2016-08-08 11:34:59 -0700 | [diff] [blame] | 3 | comment "Toolchain External Options" |
| 4 | |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 5 | choice |
| 6 | prompt "Toolchain" |
| 7 | |
Thomas Petazzoni | 416fd9c | 2016-06-08 23:40:54 +0200 | [diff] [blame] | 8 | comment "glibc toolchains only available with shared lib support" |
Thomas Petazzoni | 665e13c | 2014-12-03 22:41:29 +0100 | [diff] [blame] | 9 | depends on BR2_STATIC_LIBS |
Thomas Petazzoni | ed3f3e4 | 2013-11-11 18:57:32 +0100 | [diff] [blame] | 10 | |
Thomas Petazzoni | f1f2ae5 | 2016-11-07 02:20:00 +0100 | [diff] [blame] | 11 | # Kept toolchains sorted by architecture in order to use some toolchain |
| 12 | # as default choice |
| 13 | |
| 14 | # Aarch64 (use Linaro toolchain by default) |
| 15 | source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in" |
Thomas Petazzoni | f0f2498 | 2016-11-07 02:20:01 +0100 | [diff] [blame] | 16 | source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in" |
Thomas Petazzoni | f1f2ae5 | 2016-11-07 02:20:00 +0100 | [diff] [blame] | 17 | |
Thomas Petazzoni | a7ec358 | 2016-11-07 02:20:16 +0100 | [diff] [blame] | 18 | # ARC |
| 19 | source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in" |
| 20 | |
Thomas Petazzoni | 21cb9d4 | 2016-11-07 02:20:02 +0100 | [diff] [blame] | 21 | # ARM (use Linaro toolchain by default) |
| 22 | source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in" |
Thomas Petazzoni | 5b3c5b3 | 2016-11-07 02:20:03 +0100 | [diff] [blame] | 23 | source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in" |
Thomas Petazzoni | 21cb9d4 | 2016-11-07 02:20:02 +0100 | [diff] [blame] | 24 | |
Thomas Petazzoni | c428f45 | 2016-11-07 02:20:05 +0100 | [diff] [blame] | 25 | # ARM big-endian |
| 26 | source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in" |
Yann E. MORIN | 997ef60 | 2015-10-27 00:49:40 +0100 | [diff] [blame] | 27 | |
Thomas Petazzoni | 1e1bef5 | 2016-11-07 02:20:07 +0100 | [diff] [blame] | 28 | # MIPS (use codesourcery toolchain by default) |
| 29 | source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in" |
Thomas Petazzoni | 95c75fc | 2016-11-07 02:20:08 +0100 | [diff] [blame] | 30 | source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in" |
Thomas Petazzoni | c4a62fa | 2016-11-07 02:20:09 +0100 | [diff] [blame] | 31 | source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in" |
Thomas Petazzoni | 1e1bef5 | 2016-11-07 02:20:07 +0100 | [diff] [blame] | 32 | |
Thomas Petazzoni | f61661b | 2016-11-07 02:20:10 +0100 | [diff] [blame] | 33 | # NIOSII |
| 34 | source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in" |
| 35 | |
Baruch Siach | 06cac64 | 2017-06-16 06:32:47 +0300 | [diff] [blame] | 36 | # x86_64 |
Romain Naour | a66b819 | 2016-11-07 02:20:12 +0100 | [diff] [blame] | 37 | source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in" |
| 38 | |
Thomas Petazzoni | ec54092 | 2016-11-07 02:20:15 +0100 | [diff] [blame] | 39 | # Kept last, so it remains the non-default choice, unless there isn't |
| 40 | # any available toolchain profile for the currently selected |
| 41 | # architecture. |
| 42 | source "toolchain/toolchain-external/toolchain-external-custom/Config.in" |
| 43 | |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 44 | endchoice |
| 45 | |
Thomas De Schampheleire | df0c125 | 2012-06-22 07:42:38 +0200 | [diff] [blame] | 46 | choice |
| 47 | prompt "Toolchain origin" |
Thomas Petazzoni | 7019407 | 2012-07-22 20:57:26 +0200 | [diff] [blame] | 48 | # 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 Schampheleire | df0c125 | 2012-06-22 07:42:38 +0200 | [diff] [blame] | 52 | |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 53 | config BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD |
Thomas De Schampheleire | df0c125 | 2012-06-22 07:42:38 +0200 | [diff] [blame] | 54 | bool "Toolchain to be downloaded and installed" |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 55 | help |
Ricardo Martincoski | 6d4f66f | 2018-04-01 02:08:45 -0300 | [diff] [blame^] | 56 | 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 Schampheleire | df0c125 | 2012-06-22 07:42:38 +0200 | [diff] [blame] | 59 | |
| 60 | config BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED |
| 61 | bool "Pre-installed toolchain" |
| 62 | help |
Ricardo Martincoski | 6d4f66f | 2018-04-01 02:08:45 -0300 | [diff] [blame^] | 63 | 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 Schampheleire | df0c125 | 2012-06-22 07:42:38 +0200 | [diff] [blame] | 66 | |
| 67 | endchoice |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 68 | |
| 69 | config BR2_TOOLCHAIN_EXTERNAL_PATH |
| 70 | string "Toolchain path" |
Arnout Vandecappelle | 392b0a2 | 2017-07-10 01:21:23 +0200 | [diff] [blame] | 71 | default "" |
Thomas De Schampheleire | df0c125 | 2012-06-22 07:42:38 +0200 | [diff] [blame] | 72 | depends on BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 73 | help |
Arnout Vandecappelle | 392b0a2 | 2017-07-10 01:21:23 +0200 | [diff] [blame] | 74 | 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 Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 79 | |
Thomas Petazzoni | 643aa23 | 2009-05-29 18:37:41 +0200 | [diff] [blame] | 80 | config BR2_TOOLCHAIN_EXTERNAL_GLIBC |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 81 | bool |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 82 | select BR2_TOOLCHAIN_USES_GLIBC |
Thomas Petazzoni | 643aa23 | 2009-05-29 18:37:41 +0200 | [diff] [blame] | 83 | |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 84 | config BR2_TOOLCHAIN_EXTERNAL_UCLIBC |
| 85 | bool |
Thomas Petazzoni | 381616e | 2013-06-30 21:29:09 +0200 | [diff] [blame] | 86 | select BR2_TOOLCHAIN_USES_UCLIBC |
Thomas Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 87 | |
Thomas Petazzoni | a1d94aa | 2013-10-08 20:17:09 +0200 | [diff] [blame] | 88 | config BR2_TOOLCHAIN_EXTERNAL_MUSL |
| 89 | bool |
| 90 | select BR2_TOOLCHAIN_USES_MUSL |
Yann E. MORIN | e31eb72 | 2016-08-18 23:50:13 +0200 | [diff] [blame] | 91 | # Compatibility headers: cdefs.h, queue.h |
| 92 | select BR2_PACKAGE_MUSL_COMPAT_HEADERS |
Thomas Petazzoni | a1d94aa | 2013-10-08 20:17:09 +0200 | [diff] [blame] | 93 | |
Arnout Vandecappelle | 1c99d70 | 2016-11-07 02:19:59 +0100 | [diff] [blame] | 94 | # Make sure the virtual-package infra checks the provider |
| 95 | config BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL |
| 96 | bool |
| 97 | default y |
| 98 | |
| 99 | config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL |
| 100 | string |
| 101 | |
Arnout Vandecappelle | b5c00f0 | 2016-11-07 02:20:17 +0100 | [diff] [blame] | 102 | config BR2_TOOLCHAIN_EXTERNAL_PREFIX |
| 103 | string |
| 104 | |
Thomas Petazzoni | f1f2ae5 | 2016-11-07 02:20:00 +0100 | [diff] [blame] | 105 | # 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 |
| 110 | source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options" |
Thomas Petazzoni | f0f2498 | 2016-11-07 02:20:01 +0100 | [diff] [blame] | 111 | source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options" |
Thomas Petazzoni | f1f2ae5 | 2016-11-07 02:20:00 +0100 | [diff] [blame] | 112 | |
Thomas Petazzoni | a7ec358 | 2016-11-07 02:20:16 +0100 | [diff] [blame] | 113 | # ARC |
| 114 | source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options" |
| 115 | |
Thomas Petazzoni | 21cb9d4 | 2016-11-07 02:20:02 +0100 | [diff] [blame] | 116 | # ARM |
| 117 | source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options" |
Thomas Petazzoni | 5b3c5b3 | 2016-11-07 02:20:03 +0100 | [diff] [blame] | 118 | source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options" |
Thomas Petazzoni | 21cb9d4 | 2016-11-07 02:20:02 +0100 | [diff] [blame] | 119 | |
Thomas Petazzoni | c428f45 | 2016-11-07 02:20:05 +0100 | [diff] [blame] | 120 | # ARM big-endian |
| 121 | source "toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in.options" |
| 122 | |
Thomas Petazzoni | 1e1bef5 | 2016-11-07 02:20:07 +0100 | [diff] [blame] | 123 | # MIPS |
| 124 | source "toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in.options" |
Thomas Petazzoni | 95c75fc | 2016-11-07 02:20:08 +0100 | [diff] [blame] | 125 | source "toolchain/toolchain-external/toolchain-external-codescape-img-mips/Config.in.options" |
Thomas Petazzoni | c4a62fa | 2016-11-07 02:20:09 +0100 | [diff] [blame] | 126 | source "toolchain/toolchain-external/toolchain-external-codescape-mti-mips/Config.in.options" |
Thomas Petazzoni | 1e1bef5 | 2016-11-07 02:20:07 +0100 | [diff] [blame] | 127 | |
Thomas Petazzoni | f61661b | 2016-11-07 02:20:10 +0100 | [diff] [blame] | 128 | # NIOSII |
| 129 | source "toolchain/toolchain-external/toolchain-external-codesourcery-niosII/Config.in.options" |
| 130 | |
Baruch Siach | 06cac64 | 2017-06-16 06:32:47 +0300 | [diff] [blame] | 131 | # x86_64 |
Romain Naour | a66b819 | 2016-11-07 02:20:12 +0100 | [diff] [blame] | 132 | source "toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in.options" |
| 133 | |
Thomas Petazzoni | ec54092 | 2016-11-07 02:20:15 +0100 | [diff] [blame] | 134 | # Custom toolchains |
| 135 | source "toolchain/toolchain-external/toolchain-external-custom/Config.in.options" |
Thomas Petazzoni | fff7117 | 2010-12-13 17:27:37 +0100 | [diff] [blame] | 136 | |
Thomas Petazzoni | a0b6faa | 2013-04-07 00:04:33 +0000 | [diff] [blame] | 137 | config 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 Petazzoni | 6c492d5 | 2010-12-13 17:27:39 +0100 | [diff] [blame] | 144 | endif # BR2_TOOLCHAIN_EXTERNAL |