On Fri, 2013-11-22 at 11:41 +0000, Phil Blundell wrote: > On Fri, 2013-11-22 at 13:39 +0800, qi.c...@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.
I think it just happens that core-image-minimal doesn't install any kernel modules so shows the symptoms. The best thing to do here is probably have a dependency on specifically on virtual/kernel:do_deploy since anyone building an image would usually want to trigger that. I appreciate there are some cases where you wouldn't but those are in a minority. Cheers, Richard _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core