Presumably you list these somewhere in an image recipe (so that
they're installed) - this could be moved into a variable in your
distro definition where it would be global?

Alex

On Mon, 4 Nov 2024 at 17:35, Sid-Ali via lists.yoctoproject.org
<sidali.teir=cysec....@lists.yoctoproject.org> wrote:
>
> Hello
>
> I am struggling with a simple case but I cannot find a simple solution.
>
> I want to set a global variable from a bbclass or from recipes (impossible 
> right?).
> My usecase is that I am installing multiple version of the same package into 
> my image and I need at my build time to get access to a variable with the 
> list of versions installed.
>
> For example, my package is named pkg. I created the following recipes:
>
> pkg-1.1_1.1.12.bb
> pkg-1.2_1.2.4.bb
> pkg-1.3_1.3.9.bb
>
> That way I installed the versions 1.1, 1.2 and 1.3.
>
> I tried having a global inherit of a bbclass that addhandler on a specific 
> event (ParseRecipe) but I cannot set a global variable that will be used from 
> recipes.
>
> is there a way to get the list of packages that are going to be installed in 
> the image from an event or variable? I could do the parsing afterwards.
>
> Thanks
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64211): https://lists.yoctoproject.org/g/yocto/message/64211
Mute This Topic: https://lists.yoctoproject.org/mt/109388624/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to