Hi Josef,

Ok thanks for the reply.  No problem I can manage it in another way.

Thanks, Matt

On Thu, May 2, 2024 at 10:25 AM Josef Holzmayr <jes...@theyoctojester.info>
wrote:

> Hi Matt,
>
> That's just not possible. A recipe can not know which image is being
> built. Reason: the packaged outputs from recipes are used for all images
> that depend on them, so they need to be image agnostic. If you need to
> trigger something across various recipes, then use a DISTRO wide
> configuration variable.
>
> Greetz,
> Josef
>
> On Thu, May 2, 2024 at 3:56 PM Matt Wood via lists.yoctoproject.org
> <mattwood2000=gmail....@lists.yoctoproject.org> wrote:
>
>> Hi all,
>>
>> I'm trying to set the SRCREV of a recipe based on the image name from the
>> bitbake command line.
>>
>> I have tried getting the IMAGE_BASENAME in various tasks but they all
>> return None presumably because these tasks and anonymous python function
>> are evaluated at parse time?
>>
>> Does anyone know if it is possible to get the name of the recipe or image
>> being passed to bitbake within a recipe?
>>
>> Thanks, Matt.
>>
>> 
>>
>>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63028): https://lists.yoctoproject.org/g/yocto/message/63028
Mute This Topic: https://lists.yoctoproject.org/mt/105862978/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to