From: "Denys Dmytriyenko" <denis@denix.org>
To: Gabor Abonyi <Gabor.Abonyi@arm.com>
Cc: "JPEWhacker@gmail.com" <JPEWhacker@gmail.com>,
Jon Mason <jdmason@kudzu.us>,
"meta-arm@lists.yoctoproject.org"
<meta-arm@lists.yoctoproject.org>, nd <nd@arm.com>
Subject: Re: [meta-arm] [PATCH 4/6] arm: trusted-firmware-m: Add recipe
Date: Wed, 1 Jul 2020 14:08:40 -0400 [thread overview]
Message-ID: <20200701180840.GT17660@denix.org> (raw)
In-Reply-To: <VI1PR0802MB2414E9F9AB2A65D5B27A7DE68E940@VI1PR0802MB2414.eurprd08.prod.outlook.com>
On Tue, Jun 23, 2020 at 08:59:56AM +0000, Gabor Abonyi wrote:
> If I move TF-M to meta-arm-bsp, then meta-arm-bsp would have the dependency on arm-toolchain. Would that be better?
> (I do not understand why meta-arm depending on arm-toolchain is a bad thing, explanations are welcome :) )
meta-arm is meant to be a central place for shared components to be used by
other BSPs. Kind of a community layer, if you like. And arm-toolchain is kind
of a special layer and may not be desirable by all BSPs, so that would reduce
overall usefulness of meta-arm layer. Each individual BSP (and meta-arm-bsp is
one of those) is free to depend on arm-toolchain layer directly, if needed.
--
Denys
> I experimented with BBFILES_DYNAMIC, but it is very unhelpful from end-user perspective (if arm-toolchain is not in bblayers):
> "ERROR: Nothing PROVIDES 'trusted-firmware-m'. Close matches:
> trusted-firmware-a"
> Compared to the current one:
> "ERROR: Layer 'meta-arm' depends on layer 'arm-toolchain', but this layer is not enabled in your configuration"
>
> I am open to any suggestions.
>
> -----Original Message-----
> From: meta-arm@lists.yoctoproject.org <meta-arm@lists.yoctoproject.org> On Behalf Of Joshua Watt via lists.yoctoproject.org
> Sent: 2020. június 22., hétfő 20:04
> To: Denys Dmytriyenko <denis@denix.org>; Jon Mason <jdmason@kudzu.us>
> Cc: Gabor Abonyi <Gabor.Abonyi@arm.com>; meta-arm@lists.yoctoproject.org; nd <nd@arm.com>
> Subject: Re: [meta-arm] [PATCH 4/6] arm: trusted-firmware-m: Add recipe
>
>
> On 6/22/20 12:36 PM, Denys Dmytriyenko wrote:
> > On Mon, Jun 22, 2020 at 01:26:54PM -0400, Jon Mason wrote:
> >> On Mon, Jun 22, 2020 at 12:49:36PM -0400, Denys Dmytriyenko wrote:
> >>> On Mon, Jun 22, 2020 at 09:13:59AM +0200, Gabor Abonyi wrote:
> >>>> Adds a recipe to pull down the trusted-firmware-m repository and
> >>>> the ones it depends on. The recipe can either use
> >>>> gcc-arm-none-eabi-native or armcompiler-native Clang toolchain to compile the firmware.
> >>>>
> >>>> Change-Id: I37a4ba38982b5b1d387eccbb26bb5c79bddab0f7
> >>>> Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
> >>>> ---
> >>>> meta-arm/conf/layer.conf | 1 +
> >>>> .../trusted-firmware-m/trusted-firmware-m.inc | 118 ++++++++++++++++++
> >>>> .../trusted-firmware-m_1.0.bb | 25 ++++
> >>>> 3 files changed, 144 insertions(+)
> >>>> create mode 100644 meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc
> >>>> create mode 100644
> >>>> meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m_1.0.bb
> >>>>
> >>>> diff --git a/meta-arm/conf/layer.conf b/meta-arm/conf/layer.conf
> >>>> index 3341972..10a7951 100644
> >>>> --- a/meta-arm/conf/layer.conf
> >>>> +++ b/meta-arm/conf/layer.conf
> >>>> @@ -11,5 +11,6 @@ BBFILE_PRIORITY_meta-arm = "6"
> >>>>
> >>>> LAYERDEPENDS_meta-arm = " \
> >>>> core \
> >>>> + arm-toolchain \
> >>> This may be problematic...
> >> Yes, this was flagged as a potential problem internally.
> >> Fortunately, meta-arm-toolchain currently has no other layer
> >> dependencies. So, it shouldn't hurt too much. Ccing JPEW directly
> >> on this, since his insight has been helpful in the past.
> >>
> >> TF-M requires Arm's LLVM/Clang based toolchain to compile, which is
> >> the second patch of this series.
> > One of the options is to move TF-M to meta-arm-bsp...
>
> Ya, I wouldn't want to mandate meta-arm-toolchain here. You could either move it to meta-arm-bsp as Denys suggested or possibly use BBFILES_DYNAMIC?
>
>
> >
next prev parent reply other threads:[~2020-07-01 18:08 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 7:13 [PATCH 0/6] arm, arm-bsp, arm-toolchain: Add Trusted-Firmware-M recipe gabor.abonyi
2020-06-22 7:13 ` [PATCH 1/6] arm-toolchain: external-arm-toolchain: Rename Gabor Abonyi
2020-06-22 7:13 ` [PATCH 2/6] arm-toolchain: armcompiler: Add Arm Clang recipe Gabor Abonyi
2020-06-22 14:23 ` [meta-arm] " Jon Mason
2020-06-22 18:22 ` Ross Burton
2020-06-23 7:47 ` Gabor Abonyi
2020-06-26 10:05 ` Ross Burton
2020-06-22 7:13 ` [PATCH 3/6] arm: python3-cbor: Add recipe Gabor Abonyi
2020-06-22 7:13 ` [PATCH 4/6] arm: trusted-firmware-m: " Gabor Abonyi
2020-06-22 16:49 ` [meta-arm] " Denys Dmytriyenko
2020-06-22 17:26 ` Jon Mason
2020-06-22 17:36 ` Denys Dmytriyenko
2020-06-22 18:04 ` Joshua Watt
2020-06-23 8:59 ` Gabor Abonyi
2020-07-01 18:08 ` Denys Dmytriyenko [this message]
2020-07-02 9:14 ` Ross Burton
2020-07-02 15:39 ` Jon Mason
2020-07-16 6:14 ` Fabien Parent
2020-07-17 13:32 ` Jon Mason
2020-06-22 18:23 ` Ross Burton
2020-06-22 18:43 ` Denys Dmytriyenko
2020-06-22 19:29 ` Ross Burton
2020-06-22 19:48 ` Denys Dmytriyenko
2020-06-23 7:06 ` Diego Sueiro
2020-07-01 18:10 ` [meta-arm] " Denys Dmytriyenko
2020-07-02 15:33 ` Jon Mason
2020-06-22 7:14 ` [PATCH 5/6] arm-bsp: musca_b1: Add machine Gabor Abonyi
2020-06-22 7:14 ` [PATCH 6/6] arm-bsp: musca_s1: " Gabor Abonyi
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=20200701180840.GT17660@denix.org \
--to=denis@denix.org \
--cc=Gabor.Abonyi@arm.com \
--cc=JPEWhacker@gmail.com \
--cc=jdmason@kudzu.us \
--cc=meta-arm@lists.yoctoproject.org \
--cc=nd@arm.com \
/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.