On Mon, 4 Nov 2024 at 20:53, Sid-Ali via Lists.Yoctoproject.Org
<sidali.teir=cysec....@lists.yoctoproject.org> wrote:
> 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}"

I'm not sure what PKGS_VER is for, but anyway, no not quite. I wasn't
proposing python code at all, just a static list that gets updated
through an external script (that goes over filenames in a layer tree
and forms a list).

You might be able to write a python function that does the same, and
call it in SOME_VAR = "${@...}" but I'm not sure it'll work.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64218): https://lists.yoctoproject.org/g/yocto/message/64218
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