* PREFERRED_VERSION
@ 2020-05-14 8:05 Damien LEFEVRE
2020-05-14 8:12 ` [yocto] PREFERRED_VERSION Ross Burton
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Damien LEFEVRE @ 2020-05-14 8:05 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
Hi,
Should it be possible to set PREFERRED_VERSION in the image definition
files?
I have 2 image files:
- image1.bb
- image2.bb : PREFERRED_VERSION_package_1.0.0
I have a package with 2 versions:
- package_1.0.0.bb
- package_1.1.0.bb
I'm using the same HW setup, MACHINE, distro and local.conf.
Thanks,
-Damien
[-- Attachment #2: Type: text/html, Size: 656 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] PREFERRED_VERSION
2020-05-14 8:05 PREFERRED_VERSION Damien LEFEVRE
@ 2020-05-14 8:12 ` Ross Burton
2020-05-14 8:20 ` Quentin Schulz
2020-05-14 8:32 ` ito
2 siblings, 0 replies; 5+ messages in thread
From: Ross Burton @ 2020-05-14 8:12 UTC (permalink / raw)
To: Damien LEFEVRE; +Cc: yocto
On Thu, 14 May 2020 at 09:06, Damien LEFEVRE <lefevre.da@gmail.com> wrote:
> Should it be possible to set PREFERRED_VERSION in the image definition files?
No.
Ross
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] PREFERRED_VERSION
2020-05-14 8:05 PREFERRED_VERSION Damien LEFEVRE
2020-05-14 8:12 ` [yocto] PREFERRED_VERSION Ross Burton
@ 2020-05-14 8:20 ` Quentin Schulz
2020-05-14 8:43 ` Damien LEFEVRE
2020-05-14 8:32 ` ito
2 siblings, 1 reply; 5+ messages in thread
From: Quentin Schulz @ 2020-05-14 8:20 UTC (permalink / raw)
To: Damien LEFEVRE; +Cc: yocto
Hi Damienm
On Thu, May 14, 2020 at 11:05:56AM +0300, Damien LEFEVRE wrote:
> Hi,
>
> Should it be possible to set PREFERRED_VERSION in the image definition
> files?
>
Conceptually, no. An image recipe is a recipe. Global data is global and
local data is local. A recipe (image or package) set local data only.
> I have 2 image files:
> - image1.bb
> - image2.bb : PREFERRED_VERSION_package_1.0.0
>
> I have a package with 2 versions:
> - package_1.0.0.bb
> - package_1.1.0.bb
>
Correct way is different distro or machine. Obviously the build impact
is high for such as small difference in images.
Two possible hacks to me:
1. package10_1.0.0.bb and package11_1.1.0.bb but then you need to manage
the dependencies inside recipes (those (r)depending on package10 or
package11). If it's a "final" package which isn't a dependency of
anything else except the image, that's actually not too bad. Then in the
image you add package10 or package11.
2. Have an intermediate recipe which RDEPENDS_${PN} += "package
(=1.1.0)" and the other on "package (=1.0.0)" and install this
intermediate recipe in the appropriate image.
There are shortcomings in both hacks (otherwise they wouldn't be called
that way :) ).
Quentin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] PREFERRED_VERSION
2020-05-14 8:05 PREFERRED_VERSION Damien LEFEVRE
2020-05-14 8:12 ` [yocto] PREFERRED_VERSION Ross Burton
2020-05-14 8:20 ` Quentin Schulz
@ 2020-05-14 8:32 ` ito
2 siblings, 0 replies; 5+ messages in thread
From: ito @ 2020-05-14 8:32 UTC (permalink / raw)
To: yocto
Hi Damienm
How about using BBMULTICONFIG ?
https://www.yoctoproject.org/docs/3.1/mega-manual/mega-manual.html#executing-a-multiple-configuration-build
On 2020/05/14 17:05, Damien LEFEVRE wrote:
> Hi,
>
> Should it be possible to set PREFERRED_VERSION in the image definition
> files?
>
> I have 2 image files:
> - image1.bb <http://image1.bb>
> - image2.bb <http://image2.bb> : PREFERRED_VERSION_package_1.0.0
>
> I have a package with 2 versions:
> - package_1.0.0.bb <http://package_1.0.0.bb>
> - package_1.1.0.bb <http://package_1.1.0.bb>
>
> I'm using the same HW setup, MACHINE, distro and local.conf.
>
> Thanks,
> -Damien
>
>
>
--
Takayasu Ito
Technical Expert, Solution Department
Lineo Solutions, Inc.
https://www.lineo.co.jp/modules/english/
Email: ito@lineo.co.jp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [yocto] PREFERRED_VERSION
2020-05-14 8:20 ` Quentin Schulz
@ 2020-05-14 8:43 ` Damien LEFEVRE
0 siblings, 0 replies; 5+ messages in thread
From: Damien LEFEVRE @ 2020-05-14 8:43 UTC (permalink / raw)
To: Quentin Schulz; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 1610 bytes --]
OK thanks guys, that's what I though.
I did hack 1 since I could, but good to know the hack 2. in case this ever
happens for packages I'm not in control of.
Cheers,
-Damien
On Thu, May 14, 2020 at 11:20 AM Quentin Schulz <
quentin.schulz@streamunlimited.com> wrote:
> Hi Damienm
>
> On Thu, May 14, 2020 at 11:05:56AM +0300, Damien LEFEVRE wrote:
> > Hi,
> >
> > Should it be possible to set PREFERRED_VERSION in the image definition
> > files?
> >
>
> Conceptually, no. An image recipe is a recipe. Global data is global and
> local data is local. A recipe (image or package) set local data only.
>
> > I have 2 image files:
> > - image1.bb
> > - image2.bb : PREFERRED_VERSION_package_1.0.0
> >
> > I have a package with 2 versions:
> > - package_1.0.0.bb
> > - package_1.1.0.bb
> >
>
> Correct way is different distro or machine. Obviously the build impact
> is high for such as small difference in images.
>
> Two possible hacks to me:
> 1. package10_1.0.0.bb and package11_1.1.0.bb but then you need to manage
> the dependencies inside recipes (those (r)depending on package10 or
> package11). If it's a "final" package which isn't a dependency of
> anything else except the image, that's actually not too bad. Then in the
> image you add package10 or package11.
>
> 2. Have an intermediate recipe which RDEPENDS_${PN} += "package
> (=1.1.0)" and the other on "package (=1.0.0)" and install this
> intermediate recipe in the appropriate image.
>
> There are shortcomings in both hacks (otherwise they wouldn't be called
> that way :) ).
>
> Quentin
>
[-- Attachment #2: Type: text/html, Size: 2547 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-14 8:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 8:05 PREFERRED_VERSION Damien LEFEVRE
2020-05-14 8:12 ` [yocto] PREFERRED_VERSION Ross Burton
2020-05-14 8:20 ` Quentin Schulz
2020-05-14 8:43 ` Damien LEFEVRE
2020-05-14 8:32 ` ito
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.