I wanted to compile the kernel module that I found in this link:
https://wiki.luckfox.com/Luckfox-Pico/L ... x-Pico-SDK
I changed the KDIR to:
<my-path>/luckfox-pico/sysdrv/source/kernel
But the compiler give this error:
Code: Select all
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.
Makefile:672: include/config/auto.conf: No such file or directory
make: *** [Makefile:758: include/config/auto.conf] Error 1
<my-path>/luckfox-pico/sysdrv/source/objs_kernel/
With this path the compile was successful and the .KO worked fine!
I'll leave this information for others, maybe you will fix the Wiki.
Thanks!