From: "Denys Dmytriyenko" <denis@denix.org>
To: Jon Mason <jdmason@kudzu.us>
Cc: meta-arm@lists.yoctoproject.org, Joshua Watt <JPEWhacker@gmail.com>
Subject: Re: [meta-arm] [PATCH] arm-toolchain: gcc-arm-none-eabi-native: Add recipe
Date: Thu, 14 May 2020 20:43:44 -0400 [thread overview]
Message-ID: <20200515004344.GA11927@denix.org> (raw)
In-Reply-To: <20200514140646.26519-1-jdmason@kudzu.us>
On Thu, May 14, 2020 at 10:06:46AM -0400, Jon Mason wrote:
> 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.
>
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> Signed-off-by: Jon Mason <jdmason@kudzu.us>
> ---
> ...cc-arm-none-eabi-native_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-native_9-2019-q4-major.bb
>
> diff --git a/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi-native_9-2019-q4-major.bb b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi-native_9-2019-q4-major.bb
> new file mode 100644
> index 0000000..f1c0cff
> --- /dev/null
> +++ b/meta-arm-toolchain/recipes-devtools/external-arm-toolchain/gcc-arm-none-eabi-native_9-2019-q4-major.bb
> @@ -0,0 +1,39 @@
> +# 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"
Should this be SUMMARY?
> +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}"
> +
> +inherit native
Is this needed with BBCLASSEXTEND?
> +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"
Requires FILES_${PN}, since this can now be a proper nativesdk package.
Also, probably will need more INSANE_SKIP for nativesdk package as well...
> +INHIBIT_SYSROOT_STRIP = "1"
> +INHIBIT_PACKAGE_STRIP = "1"
> +INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
> +
> +BBCLASSEXTEND = "native nativesdk"
> --
> 2.20.1
>
>
next prev parent reply other threads:[~2020-05-15 0:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 14:06 [PATCH] arm-toolchain: gcc-arm-none-eabi-native: Add recipe Jon Mason
2020-05-15 0:43 ` Denys Dmytriyenko [this message]
[not found] ` <160F0CF2407B1172.6323@lists.yoctoproject.org>
2020-05-15 1:35 ` [meta-arm] " Denys Dmytriyenko
-- strict thread matches above, loose matches on Subject: below --
2020-05-14 2:49 Jon Mason
2020-05-14 4:25 ` [meta-arm] " Denys Dmytriyenko
2020-05-14 8:10 ` Ross Burton
2020-05-14 20:03 ` Denys Dmytriyenko
2020-05-14 12:31 ` Jon Mason
2020-05-14 5:03 ` Sumit Garg
2020-05-14 7:57 ` khasim.mohammed
2020-05-14 10:52 ` Sumit Garg
2020-05-14 12:32 ` Jon Mason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200515004344.GA11927@denix.org \
--to=denis@denix.org \
--cc=JPEWhacker@gmail.com \
--cc=jdmason@kudzu.us \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.