toolchain-external: add Arm AArch64 toolchain 8.2-2018.08

This is the same toolchain that was previously distributed by Linaro. [1]

Switch default toolchain as this toolchain supersed the Linaro AArch64 toolchain.
Only x86_64 host are supported, so keep Linaro toolchain for x86 host.

Tested with qemu_aarch64_virt_defconfig.

[1] https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Romain Naour 2018-10-09 22:07:01 +02:00 committed by Thomas Petazzoni
parent a98f7236c4
commit d74c133ad5
6 changed files with 48 additions and 1 deletions

View File

@ -1822,6 +1822,7 @@ F: package/tk/
F: package/upower/ F: package/upower/
F: package/waffle/ F: package/waffle/
F: package/xenomai/ F: package/xenomai/
F: toolchain/toolchain-external/toolchain-external-arm-aarch64/
F: toolchain/toolchain-external/toolchain-external-arm-arm/ F: toolchain/toolchain-external/toolchain-external-arm-arm/
N: Roman Gorbenkov <roman.gorbenkov@ens2m.org> N: Roman Gorbenkov <roman.gorbenkov@ens2m.org>

View File

@ -11,7 +11,8 @@ comment "glibc toolchains only available with shared lib support"
# Kept toolchains sorted by architecture in order to use some toolchain # Kept toolchains sorted by architecture in order to use some toolchain
# as default choice # as default choice
# Aarch64 (use Linaro toolchain by default) # Aarch64 (use ARM toolchain by default)
source "toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in"
source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in" source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in"
source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in" source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in"
@ -111,6 +112,7 @@ config BR2_TOOLCHAIN_EXTERNAL_PREFIX
# BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX # BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL and BR2_TOOLCHAIN_EXTERNAL_PREFIX
# Aarch64 # Aarch64
source "toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in.options"
source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options" source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in.options"
source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options" source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"

View File

@ -0,0 +1,19 @@
config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
bool "Arm AArch64 2018.08"
depends on BR2_aarch64
depends on BR2_HOSTARCH = "x86_64"
depends on !BR2_STATIC_LIBS
select BR2_TOOLCHAIN_EXTERNAL_GLIBC
select BR2_TOOLCHAIN_HAS_SSP
select BR2_INSTALL_LIBSTDCPP
select BR2_TOOLCHAIN_HAS_NATIVE_RPC
select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
select BR2_TOOLCHAIN_GCC_AT_LEAST_8
select BR2_TOOLCHAIN_HAS_FORTRAN
help
Arm toolchain for the AArch64 architecture.
This is the same toolchain that was previously distributed by
Linaro.
https://developer.arm.com/open-source/gnu-toolchain

View File

@ -0,0 +1,9 @@
if BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
config BR2_TOOLCHAIN_EXTERNAL_PREFIX
default "aarch64-linux-gnu"
config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
default "toolchain-external-arm-aarch64"
endif

View File

@ -0,0 +1,4 @@
# From https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2018.08/gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu.tar.xz.asc
md5 1c47f4edc431cf19604a9f1b09975269 gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu.tar.xz
# locally calculated
sha256 3e60644846ac60693e58ad71a319d64c5f7bcf95ff34411272c8d9674f85648f gcc-arm-8.2-2018.08-x86_64-aarch64-linux-gnu.tar.xz

View File

@ -0,0 +1,12 @@
################################################################################
#
# toolchain-external-arm-aarch64
#
################################################################################
TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION = 2018.08
TOOLCHAIN_EXTERNAL_ARM_AARCH64_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)
TOOLCHAIN_EXTERNAL_ARM_AARCH64_SOURCE = gcc-arm-8.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_VERSION)-x86_64-aarch64-linux-gnu.tar.xz
$(eval $(toolchain-external-package))