I have a working iMX8m Linux build using the L4.14.92_2.0.0_ga yocto release on a Ubuntu 18 host.
I have extended the BSP using a meta-my-layer with a few tweaks.
I now want to add a new kernel module driver.
As a starting point I copied over the example from sources\poky\meta-skeleton\recipes-kernel\hello-mod to my-layer as recommended.
I would assumed I could just build this example as is but it does not appear so.
When I do bitbake -v hello-mod I see several errors:
The first errors seems to be in the do_compile phase:
Not sure how to fix this.
Hello David Vescovi,
There are many variables at play even in simple recipes. I would recommend looking at the following document from Variscite’s wiki which may help as a starting point.
http://variwiki.com/index.php?title=Yocto_Hello_World
Regards,