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:
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Not sure how to fix this.