Skip to contentSkip to conversation

gcc-aarch64-none-elf: properly set ${S} that is different from default

PATCH In review Denys Dmytriyenko 2 participants 3 messages Jun 5, 2020 – Jun 8, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 gcc-aarch64-none-elf: properly set ${S} that is different from default

From: Denys Dmytriyenko <[email protected]>

Also use ${BINNAME} and ${PV} variables for automatic substitution.

---
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +3 -1
index 1e4689c..91daf08 100644
@@ -10,6 +10,8 @@ LIC_FILES_CHKSUM = "file://share/doc/gcc/GNU-Free-Documentation-License.html;md5
 
 PROVIDES = "virtual/aarch64-none-elf-gcc"
 
-SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"
+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.7.4
#1 lore raw

PATCH 2/2 gcc-x86host.inc: properly link triplet-prefixed binaries

From: Denys Dmytriyenko <[email protected]>

Use the correct path for the binaries in ${datadir}, otherwise it results in a single incorrect symlink like gcc-arm-none-eabi-*

---
 .../recipes-devtools/external-arm-toolchain/gcc-x86host.inc             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-x86host.inc +1 -1
index f823f4f..d262e39 100644
@@ -10,7 +10,7 @@ do_install() {
 
     install -d ${D}${bindir}
     # Symlink all executables into bindir
-    for f in ${D}${datadir}/${BINNAME}/bin/${BINNAME}-*; do
+    for f in ${D}${datadir}/bin/${BINNAME}-*; do
         lnr $f ${D}${bindir}/$(basename $f)
     done
 }
Signature · 1 line
2.7.4
#2 lore raw
In reply to Denys Dmytriyenko
Quoted 5 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

Also use ${BINNAME} and ${PV} variables for automatic substitution.

Pulled both of these patches into master

Quoted 23 lines
---
 .../external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-aarch64-none-elf_9.2-2019.12.bb +3 -1
index 1e4689c..91daf08 100644
@@ -10,6 +10,8 @@ LIC_FILES_CHKSUM = "file://share/doc/gcc/GNU-Free-Documentation-License.html;md5
 
 PROVIDES = "virtual/aarch64-none-elf-gcc"
 
-SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-a/9.2-2019.12/binrel/gcc-arm-${PV}-x86_64-aarch64-none-elf.tar.xz"
+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.7.4