Skip to contentSkip to conversation

arm-toolchain: gcc-arm-none-eabi-native: Add recipe

PATCH In review Denys Dmytriyenko 4 participants 7 messages May 15, 2020 – May 19, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 arm-toolchain: gcc-arm-none-eabi-native: Add recipe

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R and Cortex-M processors from ARM. This toolchain is required to build Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile some firmware for the M0 coprocessor.

This was originally taken from meta-rockchip, but has been modified from mailing list feedback.

---
v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

 .../gcc-arm-none-eabi_9-2019-q4-major.bb           | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +39 -0
new file mode 100644
index 0000000..84f6dba
@@ -0,0 +1,39 @@
+# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "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/${BPN}-${PV}-x86_64-linux.tar.bz2"
+
+SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
+SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+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
+}
+
+FILES_${PN} = "${datadir} ${bindir}"
+
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
Reviewed-by on v3 1/1
#1 lore raw
Quoted 8 lines · Denys Dmytriyenko

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R and Cortex-M processors from ARM. This toolchain is required to build Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile some firmware for the M0 coprocessor.

Quoted 6 lines

This was originally taken from meta-rockchip, but has been modified from mailing list feedback.

Quoted 69 lines

---
v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

 .../gcc-arm-none-eabi_9-2019-q4-major.bb           | 39
++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb

diff --git b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file mode 100644
index 0000000..84f6dba
--- /dev/null
+++
b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +7 -0
@@ -0,0 +1,39 @@
+# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "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"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +4 -0
+
+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"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +3 -0
+
+SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
+SRC_URI[sha256sum] =

"bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +25 -0
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+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
+}
+
+FILES_${PN} = "${datadir} ${bindir}"
+
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
#2 lore raw

________________________________________
From: [email protected] <[email protected]> on behalf of Diego Sueiro via lists.yoctoproject.org <[email protected]>
Sent: Friday, May 15, 2020 1:13 PM
To: [email protected]
Subject: Re: [meta-arm] [PATCH v3] arm-toolchain: gcc-arm-none-eabi-native: Add recipe

Quoted 8 lines · Denys Dmytriyenko

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R and Cortex-M processors from ARM. This toolchain is required to build Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile some firmware for the M0 coprocessor.

Quoted 8 lines

This was originally taken from meta-rockchip, but has been modified from mailing list feedback.

I observe one issue when building for n1sdp,
gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Quoted 40 lines

---
v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

 .../gcc-arm-none-eabi_9-2019-q4-major.bb           | 39
++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb

diff --git b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file mode 100644
index 0000000..84f6dba
--- /dev/null
+++
b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +7 -0
@@ -0,0 +1,39 @@
+# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "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"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +4 -0
+
+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"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +3 -0
+
+SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
+SRC_URI[sha256sum] =

"bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb line 19

Quoted 5 lines
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +5 -0
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+COMPATIBLE_HOST = "x86_64.*-linux"
+

Can this be changed to : "x86_64.*|aarch64.*"

Quoted 21 lines
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +20 -1
+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
+}
+
+FILES_${PN} = "${datadir} ${bindir}"
+
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
--
Quoted 3 lines

2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

________________________________________
From: [email protected] <[email protected]> on behalf of Khasim Mohammed via lists.yoctoproject.org <[email protected]>
Sent: Sunday, May 17, 2020 6:00 PM
To: [email protected]; Diego Sueiro
Subject: Re: [meta-arm] [PATCH v3] arm-toolchain: gcc-arm-none-eabi-native: Add recipe

________________________________________
From: [email protected] <[email protected]> on behalf of Diego Sueiro via lists.yoctoproject.org <[email protected]>
Sent: Friday, May 15, 2020 1:13 PM
To: [email protected]
Subject: Re: [meta-arm] [PATCH v3] arm-toolchain: gcc-arm-none-eabi-native: Add recipe

Quoted 11 lines · Denys Dmytriyenko

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R and Cortex-M processors from ARM. This toolchain is required to build Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile some firmware for the M0 coprocessor.

This was originally taken from meta-rockchip, but has been modified from mailing list feedback.

Quoted 8 lines

I observe one issue when building for n1sdp,
gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Actually I found two issue
1) gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Review

Quoted 2 lines
(quoted diff) +2 -0
+COMPATIBLE_HOST = "x86_64.*-linux"
+

changed to : "x86_64.*|aarch64.*" to build.

2) ERROR: gcc-arm-none-eabi-9-2019-q4-major-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. added below line to fix :

inherit native

Regards,
Khasim

Quoted 40 lines

---
v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

 .../gcc-arm-none-eabi_9-2019-q4-major.bb           | 39
++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb

diff --git b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file mode 100644
index 0000000..84f6dba
--- /dev/null
+++
b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +7 -0
@@ -0,0 +1,39 @@
+# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "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"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +4 -0
+
+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"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +3 -0
+
+SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
+SRC_URI[sha256sum] =

"bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"

meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb line 19

Quoted 5 lines
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +5 -0
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+COMPATIBLE_HOST = "x86_64.*-linux"
+

Can this be changed to : "x86_64.*|aarch64.*"

Quoted 21 lines
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +20 -1
+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
+}
+
+FILES_${PN} = "${datadir} ${bindir}"
+
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
--
Quoted 3 lines

2.7.4

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#5 lore raw

Khasim,

I don't think you are using it correctly, see below.

Quoted 10 lines · Khasim Mohammed
Quoted 9 lines

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R and Cortex-M processors from ARM. This toolchain is required to build Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile some firmware for the M0 coprocessor.

This was originally taken from meta-rockchip, but has been modified from mailing list feedback.

Quoted 8 lines
Quoted 2 lines

I observe one issue when building for n1sdp,
gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Actually I found two issue
1) gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Quoted 1 line

+COMPATIBLE_HOST = "x86_64.*-linux"

changed to : "x86_64.*|aarch64.*" to build.

Are you trying to use it on aarch64 host?
Or are you trying to build ot for the target?

This is a prebuilt binary that only runs on x86_64.
And, obviously, it is not meant for the target - the error is correct, arm-none-eabi != aarch64-poky-linux

Quoted 4 lines

2) ERROR: gcc-arm-none-eabi-9-2019-q4-major-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. added below line to fix :

inherit native

If you check the list of v3 changes below, you'll see that inherit native was removed. It is not needed, due to BBCLASSEXTEND = "native nativesdk" So, basically, this is not a proper cross toolchain recipe - it is a very simplistic native and nativesdk one. You shouldn't use it for any Linux builds, it's meant just for very limited bare-metal builds...

Quoted 7 lines
Quoted 7 lines

v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

In other words, this is correct:

$ bitbake gcc-arm-none-eabi-native
$ bitbake nativesdk-gcc-arm-none-eabi

This is incorrect, and is blocked on purpose:

$ bitbake gcc-arm-none-eabi
Quoted 2 lines
Quoted 1 line

+COMPATIBLE_HOST = "x86_64.*-linux"

Can this be changed to : "x86_64.*|aarch64.*"

No, it should not - that would be incorrect!

Signature · 1 line
Denys
#6 lore raw
Quoted 4 lines · Denys Dmytriyenko via lists.yoctoproject.org

Khasim,

I don't think you are using it correctly, see below.

Looks like, I had added
EXTRA_IMAGEDEPENDS += "virtual/arm-none-eabi-gcc"

In my machine conf file and that was resulting in below errors.

I moved the dependency to my target recipe (scp-firmware), I don't see these errors now.

have verified the patch, Good to go from my side.

Thanks.

Regards,
Khasim

Quoted 65 lines · Khasim Mohammed
Quoted 18 lines
Quoted 10 lines

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R
and Cortex-M processors from ARM. This toolchain is required to build
Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile
some firmware for the M0 coprocessor.

Quoted 7 lines

This was originally taken from meta-rockchip, but has been modified from
mailing list feedback.
I observe one issue when building for n1sdp, gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was
skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Quoted 7 lines

Actually I found two issue
1) gcc-arm-none-eabi PROVIDES virtual/arm-none-eabi-gcc but was
skipped: incompatible with host aarch64-poky-linux (not in COMPATIBLE_HOST)

Quoted 1 line

+COMPATIBLE_HOST = "x86_64.*-linux"

changed to : "x86_64.*|aarch64.*" to build.

Are you trying to use it on aarch64 host?
Or are you trying to build ot for the target?

This is a prebuilt binary that only runs on x86_64. And, obviously, it is not meant for the target - the error is correct,
arm-none-eabi != aarch64-poky-linux

Quoted 5 lines

2) ERROR: gcc-arm-none-eabi-9-2019-q4-major-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. added below line to fix :

inherit native

If you check the list of v3 changes below, you'll see that inherit native was
removed. It is not needed, due to BBCLASSEXTEND = "native nativesdk" So, basically, this is not a proper cross toolchain recipe - it is a very
simplistic native and nativesdk one. You shouldn't use it for any Linux
builds, it's meant just for very limited bare-metal builds...

Quoted 7 lines
Quoted 7 lines

v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

In other words, this is correct:

$ bitbake gcc-arm-none-eabi-native
$ bitbake nativesdk-gcc-arm-none-eabi

This is incorrect, and is blocked on purpose:

Quoted 10 lines
$ bitbake gcc-arm-none-eabi
Quoted 3 lines
Quoted 1 line

+COMPATIBLE_HOST = "x86_64.*-linux"

Can this be changed to : "x86_64.*|aarch64.*"

No, it should not - that would be incorrect!

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

#7 lore raw
In reply to Denys Dmytriyenko
Quoted 7 lines · Denys Dmytriyenko

From: Jon Mason <[email protected]>

Adds a recipe to pull down the prebuilt GCC for compiling on Cortex-R and Cortex-M processors from ARM. This toolchain is required to build Arm Trusted Firmware for the Rockchip rk3399 SoC, since it must compile some firmware for the M0 coprocessor.

Quoted 6 lines

This was originally taken from meta-rockchip, but has been modified from mailing list feedback.

Pulled in to the master branch.

Thanks,
Jon

Quoted 61 lines

---
v3 changes:
* rename recipe to not contain -native in the name
* fix typo in "subsidiaries" word
* use SUMMARY instead of DESCRIPTION
* remove inherit native
* add FILES_${PN} for nativesdk package
* add extra INSANE_SKIP_${PN} due to prebuilt binary package

 .../gcc-arm-none-eabi_9-2019-q4-major.bb           | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb
meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi_9-2019-q4-major.bb new file +39 -0
new file mode 100644
index 0000000..84f6dba
@@ -0,0 +1,39 @@
+# Copyright (C) 2019 Garmin Ltd. or its subsidiaries
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "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/${BPN}-${PV}-x86_64-linux.tar.bz2"
+
+SRC_URI[md5sum] = "fe0029de4f4ec43cf7008944e34ff8cc"
+SRC_URI[sha256sum] = "bcd840f839d5bf49279638e9f67890b2ef3a7c9c7a9b25271e83ec4ff41d177a"
+
+S = "${WORKDIR}/${BPN}-${PV}"
+
+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
+}
+
+FILES_${PN} = "${datadir} ${bindir}"
+
+INSANE_SKIP_${PN} = "already-stripped libdir staticdev file-rdeps"
+
+INHIBIT_SYSROOT_STRIP = "1"
+INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
+BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4