* Crazy versioning
@ 2011-09-27 13:00 Gary Thomas
2011-09-27 13:07 ` Bruce Ashfield
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Gary Thomas @ 2011-09-27 13:00 UTC (permalink / raw)
To: Poky Project
I'm trying to use the recipe meta/recipes-bsp/u-boot/u-boot_2011.06.bb
Since there are a number of u-boot recipes, I want to make sure I get
the right one, plus I'm writing a .bbappend file to add patches for
my own boards.
So I added this to my MACHINE.conf:
PREFERRED_VERSION_u-boot = "2011.06"
When I try to build, I get this error:
NOTE: preferred version 2011.06 of u-boot not available (for item u-boot)
NOTE: versions of u-boot available: git v2011.06+git16+b1af6f532e0d348b153d5c148369229d24af361a
I guess this is because the recipe has this for PV
SRCREV = "b1af6f532e0d348b153d5c148369229d24af361a"
PV = "v2011.06+git${SRCPV}"
The truly bizarre thing is that if my cache is rebuilt, the version printed changes, e.g.
% touch conf/local.conf
% bitbake u-boot
NOTE: versions of u-boot available: git v2011.06+git18+b1af6f532e0d348b153d5c148369229d24af361a
So, how do I specify the right value in PREFERRED_VERSION?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Crazy versioning
2011-09-27 13:00 Crazy versioning Gary Thomas
@ 2011-09-27 13:07 ` Bruce Ashfield
2011-09-27 13:07 ` Martin Jansa
2011-09-27 13:11 ` Richard Purdie
2 siblings, 0 replies; 7+ messages in thread
From: Bruce Ashfield @ 2011-09-27 13:07 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky Project
On Tue, Sep 27, 2011 at 9:00 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> I'm trying to use the recipe meta/recipes-bsp/u-boot/u-boot_2011.06.bb
> Since there are a number of u-boot recipes, I want to make sure I get
> the right one, plus I'm writing a .bbappend file to add patches for
> my own boards.
>
> So I added this to my MACHINE.conf:
> PREFERRED_VERSION_u-boot = "2011.06"
>
> When I try to build, I get this error:
> NOTE: preferred version 2011.06 of u-boot not available (for item u-boot)
> NOTE: versions of u-boot available: git
> v2011.06+git16+b1af6f532e0d348b153d5c148369229d24af361a
> I guess this is because the recipe has this for PV
> SRCREV = "b1af6f532e0d348b153d5c148369229d24af361a"
> PV = "v2011.06+git${SRCPV}"
> The truly bizarre thing is that if my cache is rebuilt, the version printed
> changes, e.g.
> % touch conf/local.conf
> % bitbake u-boot
> NOTE: versions of u-boot available: git
> v2011.06+git18+b1af6f532e0d348b153d5c148369229d24af361a
>
> So, how do I specify the right value in PREFERRED_VERSION?
Should just be:
PREFERRED_VERSION_u-boot = "v2011.06%"
or
PREFERRED_VERSION_u-boot = "v2011.06+git%"
if you like that format more. I went through the same thing with the kernel
recipes, and the solution is to specify a wildcard via %
Cheers,
Bruce
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Crazy versioning
2011-09-27 13:00 Crazy versioning Gary Thomas
2011-09-27 13:07 ` Bruce Ashfield
@ 2011-09-27 13:07 ` Martin Jansa
2011-09-27 13:11 ` Richard Purdie
2 siblings, 0 replies; 7+ messages in thread
From: Martin Jansa @ 2011-09-27 13:07 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky Project
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
On Tue, Sep 27, 2011 at 07:00:55AM -0600, Gary Thomas wrote:
> I'm trying to use the recipe meta/recipes-bsp/u-boot/u-boot_2011.06.bb
> Since there are a number of u-boot recipes, I want to make sure I get
> the right one, plus I'm writing a .bbappend file to add patches for
> my own boards.
>
> So I added this to my MACHINE.conf:
> PREFERRED_VERSION_u-boot = "2011.06"
>
> When I try to build, I get this error:
> NOTE: preferred version 2011.06 of u-boot not available (for item u-boot)
> NOTE: versions of u-boot available: git v2011.06+git16+b1af6f532e0d348b153d5c148369229d24af361a
> I guess this is because the recipe has this for PV
> SRCREV = "b1af6f532e0d348b153d5c148369229d24af361a"
> PV = "v2011.06+git${SRCPV}"
> The truly bizarre thing is that if my cache is rebuilt, the version printed changes, e.g.
> % touch conf/local.conf
> % bitbake u-boot
> NOTE: versions of u-boot available: git v2011.06+git18+b1af6f532e0d348b153d5c148369229d24af361a
>
> So, how do I specify the right value in PREFERRED_VERSION?
with % as wildchar
PREFERRED_VERSION_u-boot = "v2011.06%"
>
> --
> ------------------------------------------------------------
> Gary Thomas | Consulting for the
> MLB Associates | Embedded world
> ------------------------------------------------------------
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Crazy versioning
2011-09-27 13:00 Crazy versioning Gary Thomas
2011-09-27 13:07 ` Bruce Ashfield
2011-09-27 13:07 ` Martin Jansa
@ 2011-09-27 13:11 ` Richard Purdie
2011-09-27 13:19 ` Gary Thomas
2 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2011-09-27 13:11 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky Project
On Tue, 2011-09-27 at 07:00 -0600, Gary Thomas wrote:
> I'm trying to use the recipe meta/recipes-bsp/u-boot/u-boot_2011.06.bb
> Since there are a number of u-boot recipes, I want to make sure I get
> the right one, plus I'm writing a .bbappend file to add patches for
> my own boards.
>
> So I added this to my MACHINE.conf:
> PREFERRED_VERSION_u-boot = "2011.06"
>
> When I try to build, I get this error:
> NOTE: preferred version 2011.06 of u-boot not available (for item u-boot)
> NOTE: versions of u-boot available: git v2011.06+git16+b1af6f532e0d348b153d5c148369229d24af361a
> I guess this is because the recipe has this for PV
> SRCREV = "b1af6f532e0d348b153d5c148369229d24af361a"
> PV = "v2011.06+git${SRCPV}"
> The truly bizarre thing is that if my cache is rebuilt, the version printed changes, e.g.
> % touch conf/local.conf
> % bitbake u-boot
> NOTE: versions of u-boot available: git v2011.06+git18+b1af6f532e0d348b153d5c148369229d24af361a
>
> So, how do I specify the right value in PREFERRED_VERSION?
You look at the PV value in the recipe and then write something like:
PREFERRED_VERSION_u-boot = "2011.06+git%"
where % is a wildcard that matches the revision.
The reason the version incremented is down to bitbake thinking multiple
versions were being built and trying to keep versions atomically
increasing.
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Crazy versioning
2011-09-27 13:11 ` Richard Purdie
@ 2011-09-27 13:19 ` Gary Thomas
2011-09-27 14:19 ` Paul Eggleton
0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2011-09-27 13:19 UTC (permalink / raw)
To: Richard Purdie; +Cc: Poky Project
On 2011-09-27 07:11, Richard Purdie wrote:
> On Tue, 2011-09-27 at 07:00 -0600, Gary Thomas wrote:
>> I'm trying to use the recipe meta/recipes-bsp/u-boot/u-boot_2011.06.bb
>> Since there are a number of u-boot recipes, I want to make sure I get
>> the right one, plus I'm writing a .bbappend file to add patches for
>> my own boards.
>>
>> So I added this to my MACHINE.conf:
>> PREFERRED_VERSION_u-boot = "2011.06"
>>
>> When I try to build, I get this error:
>> NOTE: preferred version 2011.06 of u-boot not available (for item u-boot)
>> NOTE: versions of u-boot available: git v2011.06+git16+b1af6f532e0d348b153d5c148369229d24af361a
>> I guess this is because the recipe has this for PV
>> SRCREV = "b1af6f532e0d348b153d5c148369229d24af361a"
>> PV = "v2011.06+git${SRCPV}"
>> The truly bizarre thing is that if my cache is rebuilt, the version printed changes, e.g.
>> % touch conf/local.conf
>> % bitbake u-boot
>> NOTE: versions of u-boot available: git v2011.06+git18+b1af6f532e0d348b153d5c148369229d24af361a
>>
>> So, how do I specify the right value in PREFERRED_VERSION?
>
> You look at the PV value in the recipe and then write something like:
>
> PREFERRED_VERSION_u-boot = "2011.06+git%"
>
> where % is a wildcard that matches the revision.
>
> The reason the version incremented is down to bitbake thinking multiple
> versions were being built and trying to keep versions atomically
> increasing.
Thanks, that does work.
I gave a cursory look in the documentation (both Yocto & bitbake) and
I didn't see an explanation of this. There's a single reference
../documentation/bsp-guide/bsp.xml: PREFERRED_VERSION_linux-yocto = "3.0%"
but nothing that explains it.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Crazy versioning
2011-09-27 13:19 ` Gary Thomas
@ 2011-09-27 14:19 ` Paul Eggleton
2011-09-27 14:23 ` Gary Thomas
0 siblings, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2011-09-27 14:19 UTC (permalink / raw)
To: Gary Thomas; +Cc: poky
Hi Gary,
On Tuesday 27 September 2011 14:19:02 Gary Thomas wrote:
> I gave a cursory look in the documentation (both Yocto & bitbake) and
> I didn't see an explanation of this. There's a single reference
> ../documentation/bsp-guide/bsp.xml: PREFERRED_VERSION_linux-yocto =
> "3.0%" but nothing that explains it.
FYI I have sent Scott R some additions to the variable reference in the manual
that will mention the % wildcard and give an example.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Crazy versioning
2011-09-27 14:19 ` Paul Eggleton
@ 2011-09-27 14:23 ` Gary Thomas
0 siblings, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2011-09-27 14:23 UTC (permalink / raw)
To: Paul Eggleton; +Cc: poky
On 2011-09-27 08:19, Paul Eggleton wrote:
> Hi Gary,
>
> On Tuesday 27 September 2011 14:19:02 Gary Thomas wrote:
>> I gave a cursory look in the documentation (both Yocto& bitbake) and
>> I didn't see an explanation of this. There's a single reference
>> ../documentation/bsp-guide/bsp.xml: PREFERRED_VERSION_linux-yocto =
>> "3.0%" but nothing that explains it.
>
> FYI I have sent Scott R some additions to the variable reference in the manual
> that will mention the % wildcard and give an example.
Thanks :-)
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-09-27 14:23 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 13:00 Crazy versioning Gary Thomas
2011-09-27 13:07 ` Bruce Ashfield
2011-09-27 13:07 ` Martin Jansa
2011-09-27 13:11 ` Richard Purdie
2011-09-27 13:19 ` Gary Thomas
2011-09-27 14:19 ` Paul Eggleton
2011-09-27 14:23 ` Gary Thomas
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.