All of lore.kernel.org
 help / color / mirror / Atom feed
* Which bb is chosen when several versions are available
@ 2018-07-11 19:28 Simon Chamlian
  2018-07-11 19:30 ` Rudolf J Streif
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Chamlian @ 2018-07-11 19:28 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 497 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1040 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Which bb is chosen when several versions are available
  2018-07-11 19:28 Which bb is chosen when several versions are available Simon Chamlian
@ 2018-07-11 19:30 ` Rudolf J Streif
  2018-07-11 19:55   ` Andre McCurdy
  0 siblings, 1 reply; 3+ messages in thread
From: Rudolf J Streif @ 2018-07-11 19:30 UTC (permalink / raw)
  To: Simon Chamlian, yocto


[-- Attachment #1.1.1: Type: text/plain, Size: 905 bytes --]

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.

:rjs


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
> <http://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
> <http://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


[-- Attachment #1.1.2: Type: text/html, Size: 2375 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 499 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Which bb is chosen when several versions are available
  2018-07-11 19:30 ` Rudolf J Streif
@ 2018-07-11 19:55   ` Andre McCurdy
  0 siblings, 0 replies; 3+ messages in thread
From: Andre McCurdy @ 2018-07-11 19:55 UTC (permalink / raw)
  To: Rudolf J Streif; +Cc: Yocto discussion list

On Wed, Jul 11, 2018 at 12:30 PM, Rudolf J Streif
<rudolf.streif@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-11 19:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11 19:28 Which bb is chosen when several versions are available Simon Chamlian
2018-07-11 19:30 ` Rudolf J Streif
2018-07-11 19:55   ` Andre McCurdy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.