@@ -21,7 +21,8 @@ source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config
# ARC
source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in"
-# ARM (use Linaro toolchain by default)
+# ARM (use ARM toolchain by default)
+source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in"
source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in"
source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in"
@@ -120,6 +121,7 @@ source "toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config
source "toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in.options"
# ARM
+source "toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options"
source "toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in.options"
source "toolchain/toolchain-external/toolchain-external-codesourcery-arm/Config.in.options"
new file mode 100644
@@ -0,0 +1,31 @@
+comment "Arm toolchains available for Cortex-A + EABIhf"
+ depends on BR2_arm
+ depends on !BR2_ARM_CPU_ARMV7A || !BR2_ARM_EABIHF
+ depends on !BR2_STATIC_LIBS
+
+config BR2_TOOLCHAIN_EXTERNAL_ARM_ARM
+ bool "Arm ARM 2018.08"
+ depends on BR2_arm
+ depends on BR2_ARM_CPU_ARMV7A || BR2_ARM_CPU_ARMV8A
+ depends on BR2_HOSTARCH = "x86_64"
+ depends on BR2_ARM_EABIHF
+ depends on !BR2_STATIC_LIBS
+ select BR2_TOOLCHAIN_EXTERNAL_GLIBC
+ select BR2_TOOLCHAIN_HAS_SSP
+ select BR2_TOOLCHAIN_HAS_NATIVE_RPC
+ select BR2_INSTALL_LIBSTDCPP
+ 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 ARM architecture. It uses GCC
+ 8.2.1, GDB 8.1.1, glibc 2.28, Binutils 2.30. It generates
+ code that runs on all Cortex-A profile devices, but tuned
+ for the Cortex-A9. The code generated is Thumb 2, with the
+ hard floating point calling convention, and uses the
+ VFPv3-D16 FPU instructions.
+
+ This is the same toolchain that was previously distributed by
+ Linaro.
+
+ https://developer.arm.com/open-source/gnu-toolchain
new file mode 100644
@@ -0,0 +1,9 @@
+if BR2_TOOLCHAIN_EXTERNAL_ARM_ARM
+
+config BR2_TOOLCHAIN_EXTERNAL_PREFIX
+ default "arm-linux-gnueabihf"
+
+config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
+ default "toolchain-external-arm-arm"
+
+endif
new file mode 100644
@@ -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-arm-linux-gnueabihf.tar.xz.asc
+md5 dc7455746d90259337fb88c3e67f8855 gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf.tar.xz
+# locally calculated
+sha256 5b3f20e1327edc3073e545a5bd3d15f33e7f94181ff4e37a76e95924c1b439b9 gcc-arm-8.2-2018.08-x86_64-arm-linux-gnueabihf.tar.xz
new file mode 100644
@@ -0,0 +1,12 @@
+################################################################################
+#
+# toolchain-external-arm-arm
+#
+################################################################################
+
+TOOLCHAIN_EXTERNAL_ARM_ARM_VERSION = 2018.08
+TOOLCHAIN_EXTERNAL_ARM_ARM_SITE = https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-$(TOOLCHAIN_EXTERNAL_ARM_ARM_VERSION)
+
+TOOLCHAIN_EXTERNAL_ARM_ARM_SOURCE = gcc-arm-8.2-$(TOOLCHAIN_EXTERNAL_ARM_ARM_VERSION)-x86_64-arm-linux-gnueabihf.tar.xz
+
+$(eval $(toolchain-external-package))
This is the same toolchain that was previously distributed by Linaro. [1] Switch default toolchain as this toolchain supersed the Linaro ARM toolchain. Only x86_64 host are supported, so keep Linaro toolchain for x86 host. Tested with qemu_arm_vexpress_defconfig. [1] https://developer.arm.com/open-source/gnu-toolchain/gnu-a/downloads Signed-off-by: Romain Naour <romain.naour@gmail.com> --- toolchain/toolchain-external/Config.in | 4 ++- .../toolchain-external-arm-arm/Config.in | 31 ++++++++++++++++++++++ .../toolchain-external-arm-arm/Config.in.options | 9 +++++++ .../toolchain-external-arm-arm.hash | 4 +++ .../toolchain-external-arm-arm.mk | 12 +++++++++ 5 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 toolchain/toolchain-external/toolchain-external-arm-arm/Config.in create mode 100644 toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options create mode 100644 toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.hash create mode 100644 toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.mk