[yocto] How to switch kernel version without touching PREFERED VERSION

Valentin Le bescond valentin.lebescond at gmail.com
Wed Feb 18 04:06:49 PST 2015


Thank you for your help !

What you propose is using a kernel downloaded manually and outside of the
yocto build directory ?

I don't intend to use a custom kernel source. I was hopping to just use the
existing 3.10.% kernel recipe.

this is the content of the recipes-kernel folder :

~/yocto/poky/meta-raspberrypi/recipes-kernel/linux$ ll
linux.inc
linux-raspberrypi/
linux-raspberrypi_3.10.38.bb
linux-raspberrypi_3.12.26.bb
linux-raspberrypi_3.16.1.bb
linux-raspberrypi_3.2.27.bb
linux-raspberrypi_3.6.11.bb
linux-raspberrypi_3.8.13.bb
linux-raspberrypi.inc

The way I understand it, bitbake looks into
~/yocto/poky/meta-raspberrypi/conf/machine to find the MACHINE defined in
the layer.conf (of the build directory).
it then looks at the PREFERED_VERSION_linux-raspberrypi variable inside the
raspberrypi.conf file, to know whitch linux-raspberrypi_${PV} to use.

Am i correct ?

What I WOULD like to do is : inside a meta-wolfson layer (wich includes a
linux-raspberrypi_3.10.38.bbappend) how to change the
linux-raspberrypi_${PV} that bitbake will use.

some kind of conf/machine/raspberryppi.conf.bbappend would be nice :)

Any ideas ?




2015-02-18 12:43 GMT+01:00 Gaurang Shastri <gmshastri at gmail.com>:

> Well, if you want to use your own kernel source, you can use something
> like this:
> ==
> inherit kernel externalsrc
> EXTERNALSRC = "/home/xyz/linux-stable"
> S = "${EXTERNALSRC}"
> ...
> ==
>
> //Gaurang Shastri
>
>
> On Wed, Feb 18, 2015 at 4:23 PM, Valentin Le bescond <
> valentin.lebescond at gmail.com> wrote:
>
>> Hi all,
>>
>> I'm working an a meta-wolfson layer to add the wolfson audio card support
>> to the meta-raspberrypi layer.
>>
>> It's a very simple set of patche, but they apply to linux kernel 3.10.*
>>
>> And the PREFERED_VERSION of the machine configuration (raspberrypi.conf)
>> is  :
>> PREFERRED_VERSION_linux-raspberrypi ?= "3.12.%"
>>
>> I would like to build my images using
>> linux-raspberrypi_3.10.38.bb
>> instead of
>> linux-raspberrypi_3.12.26.bb
>>
>> What is the most "best practice" whay to achive this ?
>>
>> Best regards
>>
>> Valentin
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150218/faf96fc9/attachment.html>


More information about the yocto mailing list