toolchain-external: add Arm ARM toolchain 8.2-2018.08
authorRomain Naour <romain.naour@gmail.com>
Tue, 9 Oct 2018 20:07:00 +0000 (22:07 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 20 Oct 2018 15:02:08 +0000 (17:02 +0200)
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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
toolchain/toolchain-external/Config.in
toolchain/toolchain-external/toolchain-external-arm-arm/Config.in [new file with mode: 0644]
toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options [new file with mode: 0644]
toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.hash [new file with mode: 0644]
toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.mk [new file with mode: 0644]

index 341bf7de3b6114d1a2ad52d6960da63cf8183635..efa7d0f6b1d1bf1ce87e63baa8408d7f752cd4bc 100644 (file)
@@ -1822,6 +1822,7 @@ F:        package/tk/
 F:     package/upower/
 F:     package/waffle/
 F:     package/xenomai/
+F:     toolchain/toolchain-external/toolchain-external-arm-arm/
 
 N:     Roman Gorbenkov <roman.gorbenkov@ens2m.org>
 F:     package/davfs2/
index 273910699fec572893a5e6e988267f4155e3533b..d2b430c9f8f92714f89a63abe92fb1e51b01fe5c 100644 (file)
@@ -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"
 
diff --git a/toolchain/toolchain-external/toolchain-external-arm-arm/Config.in b/toolchain/toolchain-external/toolchain-external-arm-arm/Config.in
new file mode 100644 (file)
index 0000000..4ec61f2
--- /dev/null
@@ -0,0 +1,30 @@
+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 uses 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
diff --git a/toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options b/toolchain/toolchain-external/toolchain-external-arm-arm/Config.in.options
new file mode 100644 (file)
index 0000000..16e7d6f
--- /dev/null
@@ -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
diff --git a/toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.hash b/toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.hash
new file mode 100644 (file)
index 0000000..f13c43a
--- /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-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
diff --git a/toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.mk b/toolchain/toolchain-external/toolchain-external-arm-arm/toolchain-external-arm-arm.mk
new file mode 100644 (file)
index 0000000..03de21a
--- /dev/null
@@ -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))