Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Denys Dmytriyenko" <denis@denix.org>
To: Joshua Watt <JPEWhacker@gmail.com>
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto][meta-rockchip][PATCH v2 1/4] arm-trusted-firmware: Add recipe
Date: Thu, 23 Jan 2020 15:39:30 -0500	[thread overview]
Message-ID: <20200123203930.GC4735@denix.org> (raw)
In-Reply-To: <20200123194645.1240023-2-JPEWhacker@gmail.com>

Heh, I've been sitting on arm-trusted-firmware recipe in meta-ti for some 
time[1], wondering if I should submit it to oe-core, as it's being used more 
widely among arm64 platforms these days...

I know each SoC/platform has few customizations on top of generic ATF/TF-A, 
but we can probably have a common base in oe-core and then add our own pieces 
on top in each BSP layer.

I already had some preliminary work done in making the recipe more generic, 
but after seeing your version here, I borrowed couple things. Would you mind 
if I submit that to oe-core and we can beef it up as needed to be usable as a 
common base for differen BSPs, if accepted to oe-core?

[Though, I'm not a big fan of vanity copyright banners, but I can add your SoB 
line, if needed.]

Denys

[1] http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti/tree/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb

On Thu, Jan 23, 2020 at 01:46:42PM -0600, Joshua Watt wrote:
> Adds a recipe to build Arm Trusted Firmware
> 
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
>  .../arm-trusted-firmware_2.2.bb               | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb
> 
> diff --git a/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb
> new file mode 100644
> index 0000000..710336a
> --- /dev/null
> +++ b/recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_2.2.bb
> @@ -0,0 +1,38 @@
> +# Copyright (C) 2019 Garmin Ltd. or its subsidaries
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +SUMMARY = "Arm Trusted Firmware"
> +HOMEPAGE = "https://developer.trustedfirmware.org/"
> +LICENSE = "BSD-3-Clause"
> +LIC_FILES_CHKSUM = "file://docs/license.rst;md5=189505435dbcdcc8caa63c46fe93fa89"
> +
> +PROVIDES = "virtual/atf"
> +
> +BRANCH = "master"
> +SRC_URI = "git://git.trustedfirmware.org/TF-A/trusted-firmware-a.git;protocol=http;branch=${BRANCH}"
> +SRCREV = "a04808c16cfc126d9fe572ae7c4b5a3d39de5796"
> +
> +S = "${WORKDIR}/git"
> +B = "${WORKDIR}/build"
> +
> +inherit deploy
> +
> +ATF_SUFFIX ??= "bin"
> +
> +do_compile() {
> +	unset LDFLAGS
> +	unset CFLAGS
> +	unset CPPFLAGS
> +
> +    oe_runmake -C ${S} BUILD_BASE=${B} DEBUG=0 CROSS_COMPILE=${TARGET_PREFIX} \
> +        PLAT=${ATF_PLATFORM} ${ATF_TARGET}
> +}
> +
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
> +do_deploy() {
> +    install -m 644 ${B}/${ATF_PLATFORM}/release/${ATF_TARGET}/${ATF_TARGET}.${ATF_SUFFIX} \
> +        ${DEPLOYDIR}/${ATF_TARGET}.${ATF_SUFFIX}
> +}
> +addtask deploy after do_compile
> +
> -- 
> 2.24.1
> 

> 


  reply	other threads:[~2020-01-23 20:39 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-23 16:08 [yocto][meta-rockchip][PATCH 0/4] Add RockPi 4 support Joshua Watt
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 1/4] arm-trusted-firmware: Add recipe Joshua Watt
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 2/4] gcc-arm-none-eabi-native: " Joshua Watt
2020-01-23 19:49   ` Khem Raj
2020-01-23 19:59     ` Joshua Watt
2020-01-23 20:06       ` Khem Raj
2020-01-23 20:14         ` Joshua Watt
2020-01-23 20:46           ` Denys Dmytriyenko
2020-01-23 22:34           ` Khem Raj
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 3/4] rk3399: Add generic rk3399 support Joshua Watt
2020-01-23 16:08 ` [yocto][meta-rockchip][PATCH 4/4] rock-pi-4-rk3399: Add machine Joshua Watt
2020-01-23 19:46 ` [yocto][meta-rockchip][PATCH v2 0/4] Add Rock Pi 4 Support Joshua Watt
2020-01-23 19:46   ` [yocto][meta-rockchip][PATCH v2 1/4] arm-trusted-firmware: Add recipe Joshua Watt
2020-01-23 20:39     ` Denys Dmytriyenko [this message]
2020-01-23 19:46   ` [yocto][meta-rockchip][PATCH v2 2/4] gcc-arm-none-eabi-native: " Joshua Watt
2020-01-23 19:46   ` [yocto][meta-rockchip][PATCH v2 3/4] rk3399: Add generic rk3399 support Joshua Watt
2020-01-23 19:46   ` [yocto][meta-rockchip][PATCH v2 4/4] rock-pi-4: Add machine Joshua Watt

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=20200123203930.GC4735@denix.org \
    --to=denis@denix.org \
    --cc=JPEWhacker@gmail.com \
    --cc=yocto@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox