Hello all,
I am currently trying to build a kernel module using some homeade source code in Yocto. I would like to keep the core functionality of Yocto and have a .bb file reference the file sources (.h and .c) on my hard drive. From the sparse documentation I've found a hello world example of what I think I want to do. Yocto call this 'Out of Tree kernel module'.
For the Wandboard the 'hello-mod' example can be found in:
~/fsl-community-bsp/sources/poky/meta-skeleton/recipes-kernel/hello-mod
Within this example lies a '
hello-mod_0.1.bb' file and a 'files' folder which has the .c source code. This seems similar to what I would like to do, however cannot seem to put a few pieces together.
1. How does this kernel module get built and is it found inside the poky image? I cannot find the module in 'modules.dep' on the platform:
/lib/modules/3.0.35-4.0.0-wandboard+gd35902c/module.dep
found on the Wandboard running Yocto.
2. Is this kernel module built into the system already or is it a .ko somewhere?
3. Does anyone have a better example or can, maybe, walk me through this?
4. Do I have to separately build this module?
Any details will help. Thanks a bunch.
T