Search code examples
yoctokernel-module

Building an external kernel module with Yocto Honister and devtool: ERROR: Kernel configuration is invalid


When building an external kernel module with devtool build in Yocto, the build sometimes fails.

|   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.

How can I fix that?


Solution

  • This is a bug but there is a workaround. Just execute

    bitbake -c cleansstate make-mod-scripts