All of lore.kernel.org
 help / color / mirror / Atom feed
* PROVIDES for Yocto Kernel Recipes
@ 2013-02-08  1:22 Rudolf Streif
  2013-02-08  1:39 ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Rudolf Streif @ 2013-02-08  1:22 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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

I apologize if that has been brought up before.

The linux-yocto kernel recipes include the git tags into PV by explicitly
setting:

PV = "${LINUX_VERSION}+git${SRCPV}"

This means that you cannot for example do

bitbake linux-yocto-3.2

anymore because PROVIDES does not contain linux-yocto-3.2 but only the
rather cumbersome string linux-yocto-3.2+git${SRCPV}, with ${SRCPV}
expanded of course.

The percent notation only works for

PREFERRED_VERSION_linux-yocto = "3.2%"

but does not work for

bitbake linux-yocto-3.2%

That really only leaves you with setting PREFERRED_VERSION which is not
that convenient if you just want to build a different kernel version.

I am not sure how others feel about that and maybe I am missing something
but it would be rather simple to add that back by setting

PV = "${LINUX_VERSION} ${LINUX_VERSION}+git${SRCPV}"

Well, kind of, you still would have to know the minor version number.

Cheers,
Rudi

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

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

* Re: PROVIDES for Yocto Kernel Recipes
  2013-02-08  1:22 PROVIDES for Yocto Kernel Recipes Rudolf Streif
@ 2013-02-08  1:39 ` Bruce Ashfield
  2013-02-08  1:52   ` Rudolf Streif
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2013-02-08  1:39 UTC (permalink / raw)
  To: Rudolf Streif; +Cc: yocto@yoctoproject.org

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

On Thu, Feb 7, 2013 at 8:22 PM, Rudolf Streif <rudolf.streif@linux.com>wrote:

> I apologize if that has been brought up before.
>
> The linux-yocto kernel recipes include the git tags into PV by explicitly
> setting:
>
> PV = "${LINUX_VERSION}+git${SRCPV}"
>
> This means that you cannot for example do
>
> bitbake linux-yocto-3.2
>
> anymore because PROVIDES does not contain linux-yocto-3.2 but only the
> rather cumbersome string linux-yocto-3.2+git${SRCPV}, with ${SRCPV}
> expanded of course.
>
> The percent notation only works for
>
> PREFERRED_VERSION_linux-yocto = "3.2%"
>
> but does not work for
>
> bitbake linux-yocto-3.2%
>
> That really only leaves you with setting PREFERRED_VERSION which is not
> that convenient if you just want to build a different kernel version.
>
> I am not sure how others feel about that and maybe I am missing something
> but it would be rather simple to add that back by setting
>
> PV = "${LINUX_VERSION} ${LINUX_VERSION}+git${SRCPV}"
>

You mean with a space in the version string ? I know that I don't want
directories floating around
with spaces, since they cause no end of troubles. But maybe it's just the
font in gmail playing
tricks with my eyes.

Perhaps Richard has a suggestion, but in 3+ years, this is the first time
that this particular issue
has come up. Most everyone is setting the PREFERRED_VERSION in their bsps,
or local.conf
and not using that particular mechanism of switching between kernels ..
myself included, and I
probably build more versions of linux-yocto than anyone you'll find :)

Don't get me wrong, I'm not dead set against changing it, but we do need
both the meta and
machine git hashes in the version to uniquely identify the tree (and my no
spaces comment!).
Maybe someone knows of a better way for command line switching of the
version ?

Cheers,

Bruce



>
>

> Well, kind of, you still would have to know the minor version number.
>
> Cheers,
> Rudi
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>


-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"

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

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

* Re: PROVIDES for Yocto Kernel Recipes
  2013-02-08  1:39 ` Bruce Ashfield
@ 2013-02-08  1:52   ` Rudolf Streif
  2013-02-08  1:58     ` Bruce Ashfield
  0 siblings, 1 reply; 4+ messages in thread
From: Rudolf Streif @ 2013-02-08  1:52 UTC (permalink / raw)
  To: Bruce Ashfield; +Cc: yocto@yoctoproject.org

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

Yes, of course with a space. Proportional fonts don't work that well with
code. :)

That's why I am asking if anyone else found that to be a nuisance. Of
course, for a BSP you have to set PREFERRED_VERSION. But for testing and
working with different kernel version I would find it more convenient if I
had not to change PREFERRED_VERSION in the machine file or override it in
local.conf.

It's also sort of an inconsistency. Typically, one would expect that you
could run bitbake against a recipe by specifying the package name and
version. Using -b with the recipe file name is not an option since you
would not get the bbappends.

Cheers,
Rudi


On Thu, Feb 7, 2013 at 5:39 PM, Bruce Ashfield <bruce.ashfield@gmail.com>wrote:

>
>
>
> On Thu, Feb 7, 2013 at 8:22 PM, Rudolf Streif <rudolf.streif@linux.com>wrote:
>
>> I apologize if that has been brought up before.
>>
>> The linux-yocto kernel recipes include the git tags into PV by explicitly
>> setting:
>>
>> PV = "${LINUX_VERSION}+git${SRCPV}"
>>
>> This means that you cannot for example do
>>
>> bitbake linux-yocto-3.2
>>
>> anymore because PROVIDES does not contain linux-yocto-3.2 but only the
>> rather cumbersome string linux-yocto-3.2+git${SRCPV}, with ${SRCPV}
>> expanded of course.
>>
>> The percent notation only works for
>>
>> PREFERRED_VERSION_linux-yocto = "3.2%"
>>
>> but does not work for
>>
>> bitbake linux-yocto-3.2%
>>
>> That really only leaves you with setting PREFERRED_VERSION which is not
>> that convenient if you just want to build a different kernel version.
>>
>> I am not sure how others feel about that and maybe I am missing something
>> but it would be rather simple to add that back by setting
>>
>> PV = "${LINUX_VERSION} ${LINUX_VERSION}+git${SRCPV}"
>>
>
> You mean with a space in the version string ? I know that I don't want
> directories floating around
> with spaces, since they cause no end of troubles. But maybe it's just the
> font in gmail playing
> tricks with my eyes.
>
> Perhaps Richard has a suggestion, but in 3+ years, this is the first time
> that this particular issue
> has come up. Most everyone is setting the PREFERRED_VERSION in their bsps,
> or local.conf
> and not using that particular mechanism of switching between kernels ..
> myself included, and I
> probably build more versions of linux-yocto than anyone you'll find :)
>
> Don't get me wrong, I'm not dead set against changing it, but we do need
> both the meta and
> machine git hashes in the version to uniquely identify the tree (and my no
> spaces comment!).
> Maybe someone knows of a better way for command line switching of the
> version ?
>
> Cheers,
>
> Bruce
>
>
>
>>
>>
>
>> Well, kind of, you still would have to know the minor version number.
>>
>> Cheers,
>> Rudi
>>
>>
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await thee
> at its end"
>



-- 
-- 
*Rudolf J. Streif*
Director of Embedded Solutions
The Linux Foundation

rudolf.streif@linux.com
Phone: +1.619.631.5383
Skype: rudolfstreif
PGP: RSA 2048/2048 D6E7D28B

Linux Foundation Events Schedule:  events.linuxfoundation.org
Linux Foundation Training Schedule: training.linuxfoundation.org

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

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

* Re: PROVIDES for Yocto Kernel Recipes
  2013-02-08  1:52   ` Rudolf Streif
@ 2013-02-08  1:58     ` Bruce Ashfield
  0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2013-02-08  1:58 UTC (permalink / raw)
  To: Rudolf Streif; +Cc: yocto@yoctoproject.org

On 13-02-07 8:52 PM, Rudolf Streif wrote:
> Yes, of course with a space. Proportional fonts don't work that well
> with code. :)

Back to my work account with a sane client now!

>
> That's why I am asking if anyone else found that to be a nuisance. Of
> course, for a BSP you have to set PREFERRED_VERSION. But for testing and
> working with different kernel version I would find it more convenient if
> I had not to change PREFERRED_VERSION in the machine file or override it
> in local.conf.
>
> It's also sort of an inconsistency. Typically, one would expect that you
> could run bitbake against a recipe by specifying the package name and

I'd have to leave this comment up to others with respect to consistency,
since I'm a kernel guy and not a long time oe-classic user (just my time
with yocto and oe-core). But I've never switched versions on the command
line like this myself. A matter of taste and habits I suppose.

I quick survey shows roughly:

../meta]> find . -name '*.bb' | xargs grep PV | grep SRCPV | wc -l
87

Almost 90 other recipes with some variant of SRCPV in their version string.
So unless I'm mistaken .. they'd all suffer the same issue as linux-yocto.

Cheers,

Bruce


> version. Using -b with the recipe file name is not an option since you
> would not get the bbappends.
>
> Cheers,
> Rudi
>
>
> On Thu, Feb 7, 2013 at 5:39 PM, Bruce Ashfield <bruce.ashfield@gmail.com
> <mailto:bruce.ashfield@gmail.com>> wrote:
>
>
>
>
>     On Thu, Feb 7, 2013 at 8:22 PM, Rudolf Streif
>     <rudolf.streif@linux.com <mailto:rudolf.streif@linux.com>> wrote:
>
>         I apologize if that has been brought up before.
>
>         The linux-yocto kernel recipes include the git tags into PV by
>         explicitly setting:
>
>         PV = "${LINUX_VERSION}+git${SRCPV}"
>
>         This means that you cannot for example do
>
>         bitbake linux-yocto-3.2
>
>         anymore because PROVIDES does not contain linux-yocto-3.2 but
>         only the rather cumbersome string linux-yocto-3.2+git${SRCPV},
>         with ${SRCPV} expanded of course.
>
>         The percent notation only works for
>
>         PREFERRED_VERSION_linux-yocto = "3.2%"
>
>         but does not work for
>
>         bitbake linux-yocto-3.2%
>
>         That really only leaves you with setting PREFERRED_VERSION which
>         is not that convenient if you just want to build a different
>         kernel version.
>
>         I am not sure how others feel about that and maybe I am missing
>         something but it would be rather simple to add that back by setting
>
>         PV = "${LINUX_VERSION} ${LINUX_VERSION}+git${SRCPV}"
>
>
>     You mean with a space in the version string ? I know that I don't
>     want directories floating around
>     with spaces, since they cause no end of troubles. But maybe it's
>     just the font in gmail playing
>     tricks with my eyes.
>
>     Perhaps Richard has a suggestion, but in 3+ years, this is the first
>     time that this particular issue
>     has come up. Most everyone is setting the PREFERRED_VERSION in their
>     bsps, or local.conf
>     and not using that particular mechanism of switching between kernels
>     .. myself included, and I
>     probably build more versions of linux-yocto than anyone you'll find :)
>
>     Don't get me wrong, I'm not dead set against changing it, but we do
>     need both the meta and
>     machine git hashes in the version to uniquely identify the tree (and
>     my no spaces comment!).
>     Maybe someone knows of a better way for command line switching of
>     the version ?
>
>     Cheers,
>
>     Bruce
>
>
>         Well, kind of, you still would have to know the minor version
>         number.
>
>         Cheers,
>         Rudi
>
>
>         _______________________________________________
>         yocto mailing list
>         yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
>         https://lists.yoctoproject.org/listinfo/yocto
>
>
>
>
>     --
>     "Thou shalt not follow the NULL pointer, for chaos and madness await
>     thee at its end"
>
>
>
>
> --
> --
> *Rudolf J. Streif*
> Director of Embedded Solutions
> The Linux Foundation
>
> rudolf.streif@linux.com <mailto:rudolf.streif@linux.com>
> Phone: +1.619.631.5383
> Skype: rudolfstreif
> PGP: RSA 2048/2048 D6E7D28B
>
> Linux Foundation Events Schedule: events.linuxfoundation.org
> <http://events.linuxfoundation.org/>
> Linux Foundation Training Schedule: training.linuxfoundation.org
> <http://training.linuxfoundation.org/>
>
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

end of thread, other threads:[~2013-02-08  1:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08  1:22 PROVIDES for Yocto Kernel Recipes Rudolf Streif
2013-02-08  1:39 ` Bruce Ashfield
2013-02-08  1:52   ` Rudolf Streif
2013-02-08  1:58     ` Bruce Ashfield

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.