From: Trevor Woerner <twoerner@gmail.com>
To: yocto-patches@lists.yoctoproject.org
Subject: Re: [yocto-patches] [meta-rockchip][PATCH v2 4/4] rk3308: add provider for trusted firmware-a
Date: Fri, 13 Dec 2024 12:11:02 -0500 [thread overview]
Message-ID: <20241213171101.GA1423@localhost> (raw)
In-Reply-To: <ed3585bd-ad2b-4473-987a-3d366aa3946d@cherry.de>
On Fri 2024-12-13 @ 05:28:40 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> Hi Trevor,
>
> On 12/13/24 4:48 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> > A PREFERRED_PROVIDER entry was missed for rk3308 builds:
> >
> > NOTE: Multiple providers are available for trusted-firmware-a (rk3308-rkbin, rockchip-rkbin-tf-a)
> > Consider defining a PREFERRED_PROVIDER entry to match trusted-firmware-a
> >
> > This allows the RKBIN_RK3308_LATEST knob to work in all cases again.
> >
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> > ---
> > changes from v1
> > - added
> > ---
> > conf/machine/include/rk3308.inc | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/conf/machine/include/rk3308.inc b/conf/machine/include/rk3308.inc
> > index 1ecf085cd5de..d30901f15b4f 100644
> > --- a/conf/machine/include/rk3308.inc
> > +++ b/conf/machine/include/rk3308.inc
> > @@ -19,6 +19,7 @@ KERNEL_IMAGETYPE ?= "fitImage"
> > UBOOT_SUFFIX ?= "itb"
> > UBOOT_ENTRYPOINT ?= "0x06000000"
> > +PREFERRED_PROVIDER_trusted-firmware-a = "${@bb.utils.contains('RKBIN_RK3308_LATEST', '1', 'rockchip-rkbin-tf-a', 'rk3308-rkbin', d)}"
>
> PREFERRED_PROVIDER_trusted-firmware-a = "rockchip-rkbin-tf-a"
>
> Should be enough I believe, and it would be consistent with rk3566, rk3568
> and rk3588s where we already have that.
This fails when RKBIN_RK3308_LATEST is not defined:
ERROR: Multiple .bb files are due to be built which each provide rockchip-rkbin-tf-a
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb
A list of tasks depending on these providers is shown and may help explain where the dependency comes from.
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb has unique dependees:
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb has unique dependees:
It could be that one recipe provides something the other doesn't and should. The following provider and runtime provider differences may be helpful.
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb has unique provides:
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb has unique rprovides:
^rockchip-rkbin-tf-a-locale-.*
rockchip-rkbin-tf-a
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb has unique provides:
rockchip-rkbin-optee-os
rk3308-rkbin
rockchip-rkbin-ddr
optee-os
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb has unique rprovides:
rk3308-rkbin
^rk3308-rkbin-locale-.*
ERROR: Multiple .bb files are due to be built which each provide trusted-firmware-a:
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb
A list of tasks depending on these providers is shown and may help explain where the dependency comes from.
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb has unique dependees:
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb has unique dependees:
It could be that one recipe provides something the other doesn't and should. The following provider and runtime provider differences may be helpful.
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb has unique provides:
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb has unique rprovides:
^rockchip-rkbin-tf-a-locale-.*
rockchip-rkbin-tf-a
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb has unique provides:
rockchip-rkbin-optee-os
rk3308-rkbin
rockchip-rkbin-ddr
optee-os
/scratch/trevor/oe/builds/meta-rockchip/layers/meta-rockchip/recipes-bsp/rkbin/rk3308-rkbin_git.bb has unique rprovides:
rk3308-rkbin
^rk3308-rkbin-locale-.*
The way I suggested builds in all cases, and runs fine both ways too.
> Anyone requesting trusted-firmware-a would get rockchip-rkbin-tf-a. When
> that happens, BitBake will check PREFERRED_PROVIDER_rockchip-rkbin-tf-a and
> pick what it should.
>
> By having the suggested implementation, it would technically be possible to
> have someone request trusted-firmware-a to be rk3308-rkbin and
> rockchip-rkbin-tf-a (the provider) be rockchip-rkbin-tf-a (the recipe).
> Basically, we use a knob where there's no need to.
>
> Cheers,
> Quentin
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#905): https://lists.yoctoproject.org/g/yocto-patches/message/905
> Mute This Topic: https://lists.yoctoproject.org/mt/110099069/900817
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [twoerner@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
next prev parent reply other threads:[~2024-12-13 17:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 15:48 [meta-rockchip][PATCH v2 1/4] u-boot: switch to upstream SRCREV for rk-u-boot-env Trevor Woerner
2024-12-13 15:48 ` [meta-rockchip][PATCH v2 2/4] u-boot: use upstream for radxa-zero-3{e|w} Trevor Woerner
2024-12-15 17:28 ` [yocto-patches] " Oleksii Kurochko
2024-12-15 21:23 ` Trevor Woerner
2024-12-13 15:48 ` [meta-rockchip][PATCH v2 3/4] radxa-zero-3: switch to yocto-dev kernel Trevor Woerner
2024-12-15 17:29 ` [yocto-patches] " Oleksii Kurochko
2024-12-13 15:48 ` [meta-rockchip][PATCH v2 4/4] rk3308: add provider for trusted firmware-a Trevor Woerner
2024-12-13 16:28 ` [yocto-patches] " Quentin Schulz
2024-12-13 17:11 ` Trevor Woerner [this message]
2024-12-13 17:29 ` Quentin Schulz
2024-12-16 3:47 ` Trevor Woerner
2024-12-13 16:19 ` [yocto-patches] [meta-rockchip][PATCH v2 1/4] u-boot: switch to upstream SRCREV for rk-u-boot-env Quentin Schulz
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=20241213171101.GA1423@localhost \
--to=twoerner@gmail.com \
--cc=yocto-patches@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.