Skip to contentSkip to conversation

arm-none-eabi toolchain

PATCH In review Trevor Woerner 2 participants 3 messages Jul 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-none-eabi toolchain

We now have a dependency on meta-arm/meta-arm in order to build tf-a (there's no point carrying our own recipe when there's a common, consolidated one to use in meta-arm).

meta-arm/meta-arm now has a dependency on meta-arm/meta-arm-toolchain. meta-arm-toolchain now also has a recipe for arm-none-eabi, so we might as well use that too, and remove our own version.

---
 ...cc-arm-none-eabi-native_9-2019-q4-major.bb | 37 -------------------
 1 file changed, 37 deletions(-)
 delete mode 100644 recipes-devtools/gcc-arm-none-eabi/gcc-arm-none-eabi-native_9-2019-q4-major.bb
recipes-devtools/gcc-arm-none-eabi/gcc-arm-none-eabi-native_9-2019-q4-major.bb deleted +0 -37
deleted file mode 100644
index a0c832d..0000000
@@ -1,37 +0,0 @@
-# Copyright (C) 2019 Garmin Ltd. or its subsidaries
-# Released under the MIT license (see COPYING.MIT for the terms)
-
-DESCRIPTION = "Baremetal GCC for ARM-R and ARM-M processors"
-LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
-
-LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c18349634b740b7b95f2c2159af888f5"
-
-PROVIDES = "virtual/arm-none-eabi-gcc"
-
-SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/${BPN}-${PV}-x86_64-linux.tar.bz2"
-
-SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
-SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
-
-S = "${WORKDIR}/${BPN}-${PV}"
-
-inherit native
-
-COMPATIBLE_HOST = "x86_64.*-linux"
-
-do_install() {
-    install -d ${D}${datadir}/arm-none-eabi/
-    cp -r ${S}/. ${D}${datadir}/arm-none-eabi/
-
-    install -d ${D}${bindir}
-    # Symlink all executables into bindir
-    for f in ${D}${datadir}/arm-none-eabi/bin/arm-none-eabi-*; do
-        lnr $f ${D}${bindir}/$(basename $f)
-    done
-}
-
-INSANE_SKIP_${PN} = "already-stripped"
-
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
Signature · 1 line
2.26.0.106.g9fadedd637
#1 lore raw
Quoted 9 lines · Trevor Woerner

We now have a dependency on meta-arm/meta-arm in order to build tf-a (there's no point carrying our own recipe when there's a common, consolidated one to use in meta-arm).

meta-arm/meta-arm now has a dependency on meta-arm/meta-arm-toolchain. meta-arm-toolchain now also has a recipe for arm-none-eabi, so we might as well use that too, and remove our own version.

this also means you should add meta-arm-toolchain to layer dependencies.

Quoted 53 lines
---
 ...cc-arm-none-eabi-native_9-2019-q4-major.bb | 37 -------------------
 1 file changed, 37 deletions(-)
 delete mode 100644 recipes-devtools/gcc-arm-none-eabi/gcc-arm-none-eabi-native_9-2019-q4-major.bb
recipes-devtools/gcc-arm-none-eabi/gcc-arm-none-eabi-native_9-2019-q4-major.bb deleted +0 -38
deleted file mode 100644
index a0c832d..0000000
@@ -1,37 +0,0 @@
-# Copyright (C) 2019 Garmin Ltd. or its subsidaries
-# Released under the MIT license (see COPYING.MIT for the terms)
-
-DESCRIPTION = "Baremetal GCC for ARM-R and ARM-M processors"
-LICENSE = "GPL-3.0-with-GCC-exception & GPLv3"
-
-LIC_FILES_CHKSUM = "file://share/doc/gcc-arm-none-eabi/license.txt;md5=c18349634b740b7b95f2c2159af888f5"
-
-PROVIDES = "virtual/arm-none-eabi-gcc"
-
-SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/${BPN}-${PV}-x86_64-linux.tar.bz2"
-
-SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
-SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
-
-S = "${WORKDIR}/${BPN}-${PV}"
-
-inherit native
-
-COMPATIBLE_HOST = "x86_64.*-linux"
-
-do_install() {
-    install -d ${D}${datadir}/arm-none-eabi/
-    cp -r ${S}/. ${D}${datadir}/arm-none-eabi/
-
-    install -d ${D}${bindir}
-    # Symlink all executables into bindir
-    for f in ${D}${datadir}/arm-none-eabi/bin/arm-none-eabi-*; do
-        lnr $f ${D}${bindir}/$(basename $f)
-    done
-}
-
-INSANE_SKIP_${PN} = "already-stripped"
-
-INHIBIT_SYSROOT_STRIP = "1"
-INHIBIT_PACKAGE_STRIP = "1"
-INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--

2.26.0.106.g9fadedd637

#2 lore raw
Quoted 6 lines · Khem Raj
Quoted 5 lines · Trevor Woerner

We now have a dependency on meta-arm/meta-arm in order to build tf-a (there's no point carrying our own recipe when there's a common, consolidated one to use in meta-arm).

Quoted 6 lines
Quoted 4 lines

meta-arm/meta-arm now has a dependency on meta-arm/meta-arm-toolchain. meta-arm-toolchain now also has a recipe for arm-none-eabi, so we might as well use that too, and remove our own version.

this also means you should add meta-arm-toolchain to layer dependencies.

Thanks… and I could do a better subject line as well.