My current project is based on Yocto Daisy, with user level ads in one repo and →> repo. The life cycle of the application code is slightly different from the life cycle of the user level, so I would like to be able to capture it in the assembly.
For this purpose, I have two recipes extending core-image: 'my-image' and 'my-image-dev'. I would like my-image to always use the labeled version of the application (for example, v0.1, v0.2, etc.). I would like my-image-dev to always use the HEAD app from git master.
I wrote the recipes 'application_0.1.bb' and 'application_git.bb' and tested them in isolation. They behave as expected - "application_0.1.bb" receives a 0.1 tag, and "application_git.bb" receives a master.
The problem arises when I try to instruct a specific image to use a specific version of an “application”. I would think that it would be as simple as adding PREFERRED_VERSION_application = "0.1" and PREFERRED_VERSION_application = "git%" to my image recipes, but that does not give me any love. The only places PREFERRED_VERSION works in are in the layer.conf and machine.conf files, which does not help me, since both images are for the same logical machine.
So, this is my question - is there a way to declare a dependency on a particular package version on a Yocto image?
source share