[oe] linux recipe selected despite ASSUME_PROVIDED += "virtual/kernel"

Martyn Welch martyn.welch at gefanuc.com
Mon Jul 27 10:45:18 UTC 2009


Graham Gower wrote:
> Hi,
> I wish to build an Angstrom based console-image for mipsel from the
> org.openembedded.dev branch. I maintain a kernel for the device but am
> not yet ready to integrate this into an OE recipe. The default 
> linux_2.6.30.bb
> fails to build for me, thus I wish to not build the kernel at this point
> in time.
>
> My local.conf contains the following lines,
> STAGING_KERNEL_DIR = "/home/grg/jz/linux"
> ASSUME_PROVIDED += "virtual/kernel"
>
> However, when i run 'bitbake console-image the default linux_2.6.30.bb 
> recipe
> is still selected and the build procedes to fail.
>
> Is this the correct procedure to avoid building a kernel? If so, what 
> else
> could I be doing wrongly?

I tend to create a bitbake recipe to build my kernel and put it in an 
overlay, otherwise known as a collection[1] and setting the 
"DEFAULT_PREFERENCE"[2] to a large positive number to cause the build to 
prefer that kernel. That way it's building your kernel, but it's not yet 
in the org.openembedded.dev branch.

Martyn

[1] 
http://docs.openembedded.org/usermanual/usermanual.html#special_bitbake_collections
[2] 
http://docs.openembedded.org/usermanual/usermanual.html#recipes_defaultpreference

-- 
Martyn Welch MEng MPhil MIET (Principal Software Engineer)   T:+44(0)1327322748
GE Fanuc Intelligent Platforms Ltd,        |Registered in England and Wales
Tove Valley Business Park, Towcester,      |(3828642) at 100 Barbirolli Square,
Northants, NN12 6PF, UK T:+44(0)1327359444 |Manchester,M2 3AB  VAT:GB 927559189




More information about the Openembedded-devel mailing list