[OE-core] [PATCH 1/1] image.bbclass: depends on virtual/kernel

Phil Blundell pb at pbcl.net
Fri Nov 22 11:41:02 UTC 2013


On Fri, 2013-11-22 at 13:39 +0800, Qi.Chen at windriver.com wrote:
> Add 'virtual/kernel' to DEPENDS in image.bbclass so that the kernel
> can get built by default. Otherwise, the kernel will not get built
> unless it's required by other packages like v86d. As a result, if
> we build 'core-image-minimal' for qemumips, the kernel is not built,
> and we have 'bitbake linux-yocto' before we can use runqemu to start
> the target.

Not all images do actually need a kernel, and this will cause a
dependency loop for old-style initramfs images that are dependencies of
virtual/kernel itself.

If you just want to ensure that the kernel is available at deployment
time, perhaps you could make virtual/kernel be a dependency of do_deploy
specifically (rather than do_configure as you have it here).
Alternatively, if this is a specific problem for core-image-minimal,
maybe the virtual/kernel dependency should just go in there.

p.




More information about the Openembedded-core mailing list