I can rm -rf tmp/ sstate-cache/ cache/
and run a whole Yocto build from scratch just fine, but I'd rather not rebuild everything (especially as packages like Qt can take some time).
I've tried:
bitbake -c cleansstate linux-iwg15 kernel-module-imx-gpu-viv cryptodev-module
Note: I've also tried cleanall
, but it has the same result:
Either one of the kernel modules end up throwing this error once they get to do_compile
:
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.
The {build_dir}/tmp/work-shared/{MACHINE}/kernel-build-artifacts
folder actually contains include/generated/autoconf.h
I tried copying the contents of kernel-build-artifacts
to {build_dir}/tmp/work-shared/{MACHINE}/kernel-source
but still get the errors.
The linux-iwg15
BitBake recipe is here.
Is there anything else that I should be cleaning before rebuilding the Linux kernel modules?
After a clean build, I did notice that kernel-build-artifacts
contains kernel
and scripts
folders (as well as a symlink of source
to ..\kernel-source
) that I don't remember being there when attempting to rebuild after running bitbake -c cleansstate
.