All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <adrian.freihofer@siemens.com>,
	<openembedded-core@lists.openembedded.org>
Cc: <stefano.babic@swupdate.org>
Subject: Re: [OE-core] [PATCH 1/2] libubootenv: add rrecommends from libubootenv to u-boot-env
Date: Mon, 23 Jun 2025 13:53:09 +0200	[thread overview]
Message-ID: <DATW4CPGVUD2.2QTF3P8CFLJC2@bootlin.com> (raw)
In-Reply-To: <DATRJETQ7O1H.Q950SLDU2AGI@bootlin.com>

On Mon Jun 23, 2025 at 10:17 AM CEST, Antonin Godard wrote:
> On Mon Jun 23, 2025 at 9:35 AM CEST, Adrian Freihofer via lists.openembedded.org wrote:
>> From: Adrian Freihofer <adrian.freihofer@siemens.com>
>>
>> Without /etc/fw_env.config, the fw_printenv and fw_setenv utilities fail
>> with an error, as they cannot locate the U-Boot environment.
>> This limitation also affects any application linking against
>> libubootenv. To address this, add an RRECOMMENDS from libubootenv to the
>> u-boot-env package, which provides the necessary configuration files.
>>
>> While this could be an RDEPENDS, using RRECOMMENDS allows users with
>> custom implementations to more easily override the dependency if needed.
>>
>> Some examples suggest bbappending fw_env.config directly to the
>> libubootenv recipe. However, /etc/fw_env.config is machine-specific,
>> whereas libubootenv is not. Additionally, the default U-Boot
>> environment, which can be used by libubootenv, is also provided by the
>> machine-specific u-boot-env package. Therefore, it is preferable to
>> provide fw_env.config via the machine-specific u-boot recipe.
>>
>> Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
>> ---
>>  meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb | 4 ++++
>>  1 file changed, 4 insertions(+)
>>
>> diff --git a/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb b/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb
>> index 35678e2361f..a193872b83b 100644
>> --- a/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb
>> +++ b/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb
>> @@ -21,4 +21,8 @@ DEPENDS = "zlib libyaml"
>>  PROVIDES += "u-boot-fw-utils"
>>  RPROVIDES:${PN}-bin += "u-boot-fw-utils"
>>  
>> +# libubootenv needs /etc/fw_env.config and /etc/u-boot-initial-env configuration
>> +# files which are usually provided by the MACHINE specific u-boot-env package
>> +RRECOMMENDS:${PN} += "u-boot-env"
>> +
>>  BBCLASSEXTEND = "native"
>
> Hi,
>
> I think this patch produces the following warnings:
>
> stdio: WARNING: Nothing RPROVIDES 'u-boot-env-native' (but virtual:native:/srv/pokybuild/yocto-worker/a-full/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'libubootenv-native' (but virtual:native:/srv/pokybuild/yocto-worker/a-full/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'libubootenv-dev-native' (but virtual:native:/srv/pokybuild/yocto-worker/a-full/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
>
> Happens on `bitbake universe -c fetch -k`.
>
> Can you have a look?
>
> Full log:
> https://autobuilder.yoctoproject.org/valkyrie/api/v2/logs/2765656/raw_inline

Also triggers the following errors I believe:

ERROR: Nothing RPROVIDES 'lib32-u-boot-env' (but virtual:multilib:lib32:/srv/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
u-boot RPROVIDES lib32-u-boot-env but was skipped: PREFERRED_PROVIDER_virtual/lib32-bootloader set to lib32-u-boot, not u-boot
NOTE: Runtime target 'lib32-u-boot-env' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['lib32-u-boot-env']
ERROR: Nothing RPROVIDES 'lib32-libubootenv-dev' (but virtual:multilib:lib32:/srv/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'lib32-libubootenv-dev'
NOTE: Runtime target 'lib32-libubootenv-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['lib32-libubootenv-dev']
ERROR: Nothing RPROVIDES 'lib32-libubootenv' (but virtual:multilib:lib32:/srv/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'lib32-libubootenv'
NOTE: Runtime target 'lib32-libubootenv' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['lib32-libubootenv']
ERROR: Nothing RPROVIDES 'u-boot-env' (but /srv/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
u-boot RPROVIDES u-boot-env but was skipped: We shouldn't have multilib variants for u-boot
u-boot RPROVIDES u-boot-env but was skipped: PREFERRED_PROVIDER_virtual/lib32-bootloader set to lib32-u-boot, not u-boot
NOTE: Runtime target 'u-boot-env' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-env']
ERROR: Nothing RPROVIDES 'libubootenv' (but /srv/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'libubootenv'
NOTE: Runtime target 'libubootenv' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libubootenv']
ERROR: Nothing RPROVIDES 'libubootenv-dev' (but /srv/pokybuild/yocto-worker/qemux86-world-alt/build/meta/recipes-bsp/u-boot/libubootenv_0.3.6.bb RDEPENDS on or otherwise requires it)
No eligible RPROVIDERs exist for 'libubootenv-dev'
NOTE: Runtime target 'libubootenv-dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libubootenv-dev']

https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/1742

Antonin

-- 
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  reply	other threads:[~2025-06-23 11:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-23  7:35 [PATCH 0/2] libubootenv improvements AdrianF
2025-06-23  7:35 ` [PATCH 1/2] libubootenv: add rrecommends from libubootenv to u-boot-env AdrianF
2025-06-23  8:17   ` [OE-core] " Antonin Godard
2025-06-23 11:53     ` Antonin Godard [this message]
2025-06-23  7:35 ` [PATCH 2/2] libubootenv: do not drop debug symbols AdrianF
2025-06-23  8:15   ` Stefano Babic

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=DATW4CPGVUD2.2QTF3P8CFLJC2@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=adrian.freihofer@siemens.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=stefano.babic@swupdate.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.