[yocto] Building kernel modules as dependencies

Andreas Galauner andreas at galauner.de
Sat Jun 28 17:20:08 PDT 2014


Hi all,

I created recipes for two out-of-tree kernel modules written by myself
in Yocto. I added these two modules in the machine config to
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS or even
MACHINE_ESSENTIAL_EXTRA_RDEPENDS.

The modules build fine if I build them as targets with bitbake. The
right packages are generated and if I build the image after that, they
are included into the rootfs.
But if the modules are not build by hand before building the image, they
aren't built as dependencies and RRECOMMENDS just doesn't include them
into the image as it is supposed to do and RDEPENDS fails of course with
"Nothing PROVIDES kernel-module-my-module-name".

How can I build the kernel modules as image dependencies?
I can't seem to get it done with the countless approaches I already
tried. For example just adding the modules to CORE_IMAGE_EXTRA_INSTALL
didn't work either.

Thanks,
-Andy



More information about the yocto mailing list