> 
> But adding a recipe to a layer will not add it to any image. You still
> need to place it explicitly in a list somewhere.
> 

Yes you are absolutely right, I would need the variable that contains list of 
the versions (in my example: VAR = "1.1 1.2 1.3") for the installed packages 
and not for the included recipes.
If I understood correctly, you are suggesting this:

in distro or config file:
PKGS_INSTALL = "pkg-1.1 pkg-1.2 pkg-1.3"
PKGS_VER = "${@some python code to get the versions in a list for PKGS_INSTALL 
variable}"

in my image recipe:
IMAGE_INSTALL:append = " ${PKGS_INSTALL}"

> 
> perhaps you can explain a bit more what you really want to achieve.
> You wrote you want to have it in a global variable, but to what purpose:
> Do you need to use it one recipe?
> 
> 

Yes the purpose is to use it in another recipe.
I am installing multiple version of the package and I have an update recipe 
based on swupdate that will have these versions listed in a file so that I can 
ONLY trigger updates based on some logics that are linked to these versions.

> 
> My guess is that you don't know how many versions of pkg-*
> 

Right

> 
> IMAGE_INSTALL:append = " ${variable_containing_all_my_pkg}"
> 

This is the same suggestion as above right?

> 
> If you just need to have the number of installed packages pkg-* you could
> just parse the build folder *after* you finished the Yocto build, but that
> would be outside the bitbake process...
> 

Unfortunately I would not be able to do that because the update is generated 
during build so I would need this information before.

Of course I can simply write the versions in a specfic variable and update it 
when I add/remove a new version but I was hoping to find a more generic and 
specific way of doing that.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64217): https://lists.yoctoproject.org/g/yocto/message/64217
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