Skip to contentSkip to conversation

arm-toolchain/external-arm-toolchain: rename common include

PATCH In review Ross Burton 3 participants 8 messages Jul 16, 2020 – Jul 17, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 arm-toolchain/external-arm-toolchain: rename common include

From: Ross Burton <[email protected]>

These recipes all used a common include external-arm-toolchain-x86host.inc, but that name isn't very meaningful:
the recipes are for x86-64, there typically are more than x86-64 binaries available, and it's not for an external toolchain but integrating a binary toolchain.

Rename the include to arm-binary-toolchain.inc, as they're all the Arm binary toolchain.

Change-Id I59f5faa7373686958e226db0aa68e7880d36400e
---
 ...ernal-arm-toolchain-x86host.inc => arm-binary-toolchain.inc} | 0
 .../recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb | 2 +-
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb  | 2 +-
 .../external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename meta-arm-toolchain/recipes-devtools/external-arm-toolchain/{external-arm-toolchain-x86host.inc => arm-binary-toolchain.inc} (100%)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc renamed from meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain-x86host.inc +0 -0
similarity index 100%
rename from meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain-x86host.inc
rename to meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb +1 -1
index 4aeba68..7a7673b 100644
@@ -3,7 +3,7 @@
 # Copyright (c) 2020 Arm Limited
 #
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal Armcompiler for Cortex-A, Cortex-R and Cortex-M processors"
 HOMEPAGE = "https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +1 -1
index a45fee0..020bbf8 100644
@@ -1,7 +1,7 @@
 # Copyright (C) 2020 Texas Instruments Inc.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal GCC for Aarch64 processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb +1 -1
index 6403fe1..77e44ce 100644
@@ -1,7 +1,7 @@
 # Copyright (C) 2019 Garmin Ltd. or its subsidiaries
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/6 arm-toolchain/gcc-aarch-none-elf: don't use GFLD as license checksum

From: Ross Burton <[email protected]>

The GFDL license statement isn't a good choice for the GCC license checksum, instead use Copying.html from the documentation.

Change-Id I265bb0add795f3de40f49f8c31127ac9215d2566
---
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +1 -2
index 020bbf8..f156143 100644
@@ -6,12 +6,11 @@ require arm-binary-toolchain.inc
 SUMMARY = "Baremetal GCC for Aarch64 processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
 
-LIC_FILES_CHKSUM = "file://share/doc/gcc/GNU-Free-Documentation-License.html;md5=cc1e9a49a59ce7e6ae5ef37cd16eca0c"
+LIC_FILES_CHKSUM = "file://share/doc/gcc/Copying.html;md5=c1df856e21b17e58b0adbe29cacf4bd4"
 
 PROVIDES = "virtual/aarch64-none-elf-gcc"
 
 SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/${PV}/binrel/gcc-arm-${PV}-x86_64-${BINNAME}.tar.xz"
-
 SRC_URI[sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
 
 S = "${WORKDIR}/gcc-arm-${PV}-x86_64-${BINNAME}"
Signature · 1 line
2.26.2
#2 lore raw

PATCH 3/6 arm-toolchain/recipes-devtools: move compatible host assignments

In reply to Ross Burton

From: Ross Burton <[email protected]>

Some of the toolchains are available in more than just x86-64, so move the COMPATIBLE_HOST assignment out of the include and into the recipes.

Change-Id I10977593935bc7dc50196132d43541aed585cc18
---
 .../external-arm-toolchain/arm-binary-toolchain.inc             | 2 --
 .../recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb | 2 ++
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb  | 2 ++
 .../external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb | 2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc +0 -2
index d262e39..d099481 100644
@@ -1,5 +1,3 @@
-COMPATIBLE_HOST = "x86_64.*-linux"
-
 FILES_${PN} = "${datadir} ${bindir}"
 
 BINNAME = "${@d.getVar("BPN").strip("gcc-")}"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb +2 -0
index 7a7673b..8fbb8d0 100644
@@ -26,6 +26,8 @@ PROVIDES = "virtual/armcompiler"
 
 ARMCLANG_VERSION = "DS500-BN-00026-r5p0-15rel0"
 
+COMPATIBLE_HOST = "x86_64.*-linux"
+
 SRC_URI = "https://developer.arm.com/-/media/Files/downloads/compiler/${ARMCLANG_VERSION}.tgz;subdir=${ARMCLANG_VERSION}"
 
 SRC_URI[md5sum] = "fbed6edf5eb211c45df7b8548a10535a"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +2 -0
index f156143..5de0f96 100644
@@ -3,6 +3,8 @@
 
 require arm-binary-toolchain.inc
 
+COMPATIBLE_HOST = "x86_64.*-linux"
+
 SUMMARY = "Baremetal GCC for Aarch64 processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
 
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb +2 -0
index 77e44ce..dcc76a9 100644
@@ -3,6 +3,8 @@
 
 require arm-binary-toolchain.inc
 
+COMPATIBLE_HOST = "x86_64.*-linux"
+
 SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
 
Signature · 1 line
2.26.2
#3 lore raw

PATCH 4/6 arm-toolchain/arm-binary-toolchain: more QA skipping

In reply to Ross Burton

From: Ross Burton <[email protected]>

When building nativesdk or target forms of these recipes more QA tests are executed, which produce more warnings. As these recipes are quite special, skip more tests:

- arch, as we ship ilp32 binaries in aarch64 packages
- dev-so, as the entire toolchain is put into a single package

Change-Id Ib72b224749642c912278f0d5601fe04b30afc25f
---
 .../external-arm-toolchain/arm-binary-toolchain.inc             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc +1 -1
index d099481..2fbabfb 100644
@@ -13,7 +13,7 @@ do_install() {
     done
 }
 
-INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps arch dev-so"
 
 INHIBIT_SYSROOT_STRIP = "1"
 INHIBIT_PACKAGE_STRIP = "1"
Signature · 1 line
2.26.2
#4 lore raw

PATCH 5/6 arm-toolchain/gcc-aarch64-none-elf: support aarch64 hosts

In reply to Ross Burton

From: Ross Burton <[email protected]>

This binary toolchain is also available for aarch64, so support fetching that too.

Change-Id I788fcd95c30b97f095593059e85de9a99710be05
---
 .../gcc-aarch64-none-elf_9.2-2019.12.bb             | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +8 -5
index 5de0f96..221c07a 100644
@@ -3,16 +3,19 @@
 
 require arm-binary-toolchain.inc
 
-COMPATIBLE_HOST = "x86_64.*-linux"
+COMPATIBLE_HOST = "(x86_64|aarch64).*-linux"
 
 SUMMARY = "Baremetal GCC for Aarch64 processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
 
-LIC_FILES_CHKSUM = "file://share/doc/gcc/Copying.html;md5=c1df856e21b17e58b0adbe29cacf4bd4"
+LIC_FILES_CHKSUM = "${@d.getVar(d.expand("LIC_FILES_CHKSUM_${HOST_ARCH}"))}"
+LIC_FILES_CHKSUM_aarch64 = "file://share/doc/gcc/Copying.html;md5=1b548d9c341b3b5c82bc88551964aa60"
+LIC_FILES_CHKSUM_x86-64 = "file://share/doc/gcc/Copying.html;md5=c1df856e21b17e58b0adbe29cacf4bd4"
 
 PROVIDES = "virtual/aarch64-none-elf-gcc"
 
-SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/${PV}/binrel/gcc-arm-${PV}-x86_64-${BINNAME}.tar.xz"
-SRC_URI[sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
+SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/${PV}/binrel/gcc-arm-${PV}-${HOST_ARCH}-${BINNAME}.tar.xz;name=gnu-a-${HOST_ARCH}"
+SRC_URI[gnu-a-x86_64.sha256sum] = "36d2cbe7c2984f2c20f562ac2f3ba524c59151adfa8ee10f1326c88de337b6d1"
+SRC_URI[gnu-a-aarch64.sha256sum] = "041ca53bdd434b1a48f32161e957da1b84543c373d1881e2fd84a1579f87f243"
 
-S = "${WORKDIR}/gcc-arm-${PV}-x86_64-${BINNAME}"
+S = "${WORKDIR}/gcc-arm-${PV}-${HOST_ARCH}-${BINNAME}"
Signature · 1 line
2.26.2
#5 lore raw

PATCH 6/6 arm-toolchain/gcc-arm-none-eabi: support aarch64 hosts

In reply to Ross Burton

From: Ross Burton <[email protected]>

This binary toolchain is also available for aarch64, so support fetching that too.

Change-Id I6206d8a9b4221d8461070d0cb7fff40c712c3df0
---
 .../gcc-arm-none-eabi_9-2019-q4-major.bb                 | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb +4 -5
index dcc76a9..ede9ae9 100644
@@ -3,7 +3,7 @@
 
 require arm-binary-toolchain.inc
 
-COMPATIBLE_HOST = "x86_64.*-linux"
+COMPATIBLE_HOST = "(x86_64|aarch64).*-linux"
 
 SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
@@ -12,7 +12,6 @@ LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c18349634
 
 PROVIDES = "virtual/arm-none-eabi-gcc"
 
-SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/${BPN}-${PV}-x86_64-linux.tar.bz2"
-
-SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
-SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
+SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/${BPN}-${PV}-${HOST_ARCH}-linux.tar.bz2;name=gnu-rm-${HOST_ARCH}"
+SRC_URI[gnu-rm-x86_64.sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
+SRC_URI[gnu-rm-aarch64.sha256sum] = "1f5b9309006737950b2218250e6bb392e2d68d4f1a764fe66be96e2a78888d83"
Signature · 1 line
2.26.2
Reviewed-by on v1 1/6
#6 lore raw
In reply to Ross Burton
Quoted 14 lines · Ross Burton

From: Ross Burton <[email protected]>

These recipes all used a common include external-arm-toolchain-x86host.inc, but that name isn't very meaningful:
the recipes are for x86-64, there typically are more than x86-64 binaries available, and it's not for an external toolchain but integrating a binary toolchain.

Rename the include to arm-binary-toolchain.inc, as they're all the Arm binary toolchain.

Change-Id I59f5faa7373686958e226db0aa68e7880d36400e
Quoted 8 lines
---
 ...ernal-arm-toolchain-x86host.inc => arm-binary-toolchain.inc} | 0
 .../recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb | 2 +-
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb  | 2 +-
 .../external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename meta-arm-toolchain/recipes-devtools/external-arm-toolchain/{external-arm-toolchain-x86host.inc => arm-binary-toolchain.inc} (100%)

Looks good to me. For the series:

-Sumit

Quoted 47 lines
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc renamed from meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain-x86host.inc +0 -0
similarity index 100%
rename from meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain-x86host.inc
rename to meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb +1 -1
index 4aeba68..7a7673b 100644
@@ -3,7 +3,7 @@
 # Copyright (c) 2020 Arm Limited
 #
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal Armcompiler for Cortex-A, Cortex-R and Cortex-M processors"
 HOMEPAGE = "https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +1 -1
index a45fee0..020bbf8 100644
@@ -1,7 +1,7 @@
 # Copyright (C) 2020 Texas Instruments Inc.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal GCC for Aarch64 processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb +1 -2
index 6403fe1..77e44ce 100644
@@ -1,7 +1,7 @@
 # Copyright (C) 2019 Garmin Ltd. or its subsidiaries
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
--

2.26.2

#7 lore raw
Quoted 24 lines · Sumit Garg
Quoted 14 lines · Ross Burton

From: Ross Burton <[email protected]>

These recipes all used a common include external-arm-toolchain-x86host.inc, but that name isn't very meaningful:
the recipes are for x86-64, there typically are more than x86-64 binaries available, and it's not for an external toolchain but integrating a binary toolchain.

Rename the include to arm-binary-toolchain.inc, as they're all the Arm binary toolchain.

Change-Id I59f5faa7373686958e226db0aa68e7880d36400e
Quoted 8 lines
---
 ...ernal-arm-toolchain-x86host.inc => arm-binary-toolchain.inc} | 0
 .../recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb | 2 +-
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb  | 2 +-
 .../external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb | 2 +-
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename meta-arm-toolchain/recipes-devtools/external-arm-toolchain/{external-arm-toolchain-x86host.inc => arm-binary-toolchain.inc} (100%)
Quoted 3 lines

Looks good to me. For the series:

Series applied to master.

Thanks,
Jon

Quoted 52 lines

-Sumit

Quoted 47 lines
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc renamed from meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain-x86host.inc +0 -0
similarity index 100%
rename from meta-arm-toolchain/recipes-devtools/external-arm-toolchain/external-arm-toolchain-x86host.inc
rename to meta-arm-toolchain/recipes-devtools/external-arm-toolchain/arm-binary-toolchain.inc
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/armcompiler_6.13.bb +1 -1
index 4aeba68..7a7673b 100644
@@ -3,7 +3,7 @@
 # Copyright (c) 2020 Arm Limited
 #
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal Armcompiler for Cortex-A, Cortex-R and Cortex-M processors"
 HOMEPAGE = "https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +1 -1
index a45fee0..020bbf8 100644
@@ -1,7 +1,7 @@
 # Copyright (C) 2020 Texas Instruments Inc.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal GCC for Aarch64 processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb +1 -2
index 6403fe1..77e44ce 100644
@@ -1,7 +1,7 @@
 # Copyright (C) 2019 Garmin Ltd. or its subsidiaries
 # Released under the MIT license (see COPYING.MIT for the terms)
 
-require external-arm-toolchain-x86host.inc
+require arm-binary-toolchain.inc
 
 SUMMARY = "Baremetal GCC for ARM-R and ARM-M processors"
 LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
--

2.26.2