[yocto] Which bb is chosen when several versions are available

Andre McCurdy armccurdy at gmail.com
Wed Jul 11 12:55:36 PDT 2018


On Wed, Jul 11, 2018 at 12:30 PM, Rudolf J Streif
<rudolf.streif at gmail.com> wrote:
> The one with the higher version number unless explicitly overridden with
> PREFERRED_VERSION_php.
>
> However, if there is also a recipe with <PN>_git.bb then that one will be
> chosen as git indicates the latest.

Selection between multiple recipes in the same layer will be made
based on their PV variable. By default PV will follow the version
defined by the recipe name, but there's nothing to stop a recipe
explicitly setting something else... and it's the final PV value which
is used to select between multiple recipes, not the recipe name.
There's nothing special about _git recipes. If a _git recipe sets a
higher PV value then it will be selected, if it sets a lower PV value
then it wont.

> On 07/11/2018 12:28 PM, Simon Chamlian wrote:
>
> Hi,
>
> In the BSP yocto image, I have 2 recipes:
>
> /sources/meta-openembedded/meta-oe/recipes-devtools/php
>
> drwxrwxr-x 2 jay jay  4096 Jun 28 09:48 php
> -rw-rw-r-- 1 jay jay   232 Jun 28 09:48 php_5.5.38.bb
> drwxrwxr-x 2 jay jay  4096 Jun 28 09:48 php-5.6.26
> -rw-rw-r-- 1 jay jay   291 Jun 28 09:48 php_5.6.26.bb
> -rw-rw-r-- 1 jay jay 11980 Jun 28 09:48 php.inc
>
>
> If I add in my image recipe:
> CORE_IMAGE_EXTRA_INSTALL += " \
>     php \
> "
>
> which version will be included?
>
> Thanks,
> S
>
>
>
>
> --
> Rudolf J Streif
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


More information about the yocto mailing list