Hi Mauro,
On Mon, Feb 08, 2021 at 11:52:33AM +0100, Mauro Ziliani wrote:
Hi all.
I'm working with Krogoth on imx6
I have the same recipe with different versions
recipe1_0.9.bb
recipe1_1.0.bb
In the image recipe I put
image-recipe.bb
IMAGE_INSTALL_append := " \
recipe1 \
"
PREFERRED_VERSION_pn-recipe1 := "0.9"
Yocto chant #1: Recipe data is local, conf data is global.
In other words, you cannot modify other recipes from one recipe.
Since image recipes are recipes, your PREFERRED_VERSION ni your image
recipe is effectively a no-op.
On a side note, := operator is rarely seen outside of
FILESEXTRAPATHS_prepend in bbappend, try to keep it this way.
If I do
bitbake -s
I get
recipe1 :1.0-r0
If I do
bitbake image-recipe
in image-recipe.manifest I look
recipe1 1.0-r0
Why is not selected the preferred version?
How can I choose the recipe's version I'd like?
In a configuration file: local.conf, distro.conf, machine.conf.
Though, it is heavily discouraged to use local.conf for anything except
debugging sessions, as it is meant only for **local** configuration and
isn't supposed to be versioned.
Cheers,
Quentin