toolchain-external: add Arm AArch64-BE toolchain 8.2-2018.08
authorRomain Naour <romain.naour@gmail.com>
Tue, 9 Oct 2018 20:07:02 +0000 (22:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 20 Oct 2018 15:12:21 +0000 (17:12 +0200)
This is the same toolchain that was previously distributed by Linaro. [1]

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

[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>
DEVELOPERS
toolchain/toolchain-external/Config.in
toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in [new file with mode: 0644]
toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in.options [new file with mode: 0644]
toolchain/toolchain-external/toolchain-external-arm-aarch64-be/toolchain-external-arm-aarch64-be.hash [new file with mode: 0644]
toolchain/toolchain-external/toolchain-external-arm-aarch64-be/toolchain-external-arm-aarch64-be.mk [new file with mode: 0644]

index ed2d529b6dabd6b6103b1dd6af70ce4bfa4f06bb..5b3e8f322ee1750dae315e4780d4df4a755b1769 100644 (file)
@@ -1823,6 +1823,7 @@ F:        package/upower/
 F:     package/waffle/
 F:     package/xenomai/
 F:     toolchain/toolchain-external/toolchain-external-arm-aarch64/
+F:     toolchain/toolchain-external/toolchain-external-arm-aarch64-be/
 F:     toolchain/toolchain-external/toolchain-external-arm-arm/
 
 N:     Roman Gorbenkov <roman.gorbenkov@ens2m.org>
index 47e54fc354345ac9ad8bbcfe364bef55b8ff1a3a..1f14f0350a52a1ff7a8bc38005e3b5a44792d63d 100644 (file)
@@ -17,6 +17,7 @@ source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in
 source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in"
 
 # Aarch64 big-endian
+source "toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in"
 source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in"
 
 # ARC
@@ -117,6 +118,7 @@ source "toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in
 source "toolchain/toolchain-external/toolchain-external-codesourcery-aarch64/Config.in.options"
 
 # Aarch64 big-endian
+source "toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in.options"
 source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in.options"
 
 # ARC
diff --git a/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in b/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in
new file mode 100644 (file)
index 0000000..1e303c5
--- /dev/null
@@ -0,0 +1,19 @@
+config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE
+       bool "Arm AArch64 BE 2018.08"
+       depends on BR2_aarch64_be
+       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 Big Endian architecture.
+
+         This is the same toolchain that was previously distributed by
+         Linaro.
+
+         https://developer.arm.com/open-source/gnu-toolchain
diff --git a/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in.options b/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in.options
new file mode 100644 (file)
index 0000000..add4ada
--- /dev/null
@@ -0,0 +1,9 @@
+if BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE
+
+config BR2_TOOLCHAIN_EXTERNAL_PREFIX
+       default "aarch64_be-linux-gnu"
+
+config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
+       default "toolchain-external-arm-aarch64-be"
+
+endif
diff --git a/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/toolchain-external-arm-aarch64-be.hash b/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/toolchain-external-arm-aarch64-be.hash
new file mode 100644 (file)
index 0000000..9ab0eb5
--- /dev/null
@@ -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_be-linux-gnu.tar.xz.asc
+md5 789171dc11bc2e37e90ea3c6de46c719 gcc-arm-8.2-2018.08-x86_64-aarch64_be-linux-gnu.tar.xz
+# locally calculated
+sha256 2cd8a1a35a892db5f0cd738a8b17bd1563f6d6e4be43a2b527b355bcfb295df8 gcc-arm-8.2-2018.08-x86_64-aarch64_be-linux-gnu.tar.xz
diff --git a/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/toolchain-external-arm-aarch64-be.mk b/toolchain/toolchain-external/toolchain-external-arm-aarch64-be/toolchain-external-arm-aarch64-be.mk
new file mode 100644 (file)
index 0000000..30db8c9
--- /dev/null
@@ -0,0 +1,13 @@
+################################################################################
+#
+# toolchain-external-arm-aarch64-be
+#
+################################################################################
+
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_VERSION = 2018.08
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_VERSION)
+
+TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_SOURCE = gcc-arm-8.2-$(TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE_VERSION)-x86_64-aarch64_be-linux-gnu.tar.xz
+
+
+$(eval $(toolchain-external-package))