ERROR: Kernel configuration is invalid.

カーネルモジュールのコンパイルタスクが次のエラーで失敗する。

  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.
...
  WARNING: Symbol version dump tmp/work/arm-poky-linux-gnueabi/linux/2.6.35-r1/git/Module.symvers
           is missing; modules will have no dependencies and modversions.
...
cc1: fatal error: include/generated/autoconf.h: No such file or directory

解決方法

カーネルを cleansstate する。