When I was trying to build the camera drivers (ov5693, ov7251, or ov8865), make always got an error 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., and when I ran it sudo make, I got 'scripts/kconfig/conf --syncconfig Kconfig
can't find file Kconfig'. This is my entire output:
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.
When I was trying to build the camera drivers (ov5693, ov7251, or ov8865), make always got an error
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.
, and when I ran it sudo make, I got 'scripts/kconfig/conf --syncconfig Kconfig can't find file Kconfig'. This is my entire output:ubuntu@surface-pro-6:/home/ubuntu/surface-ipu3-cameras/ov5693$ sudo make
make -C /lib/modules/"5.9.3-surface"/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.3-surface'
scripts/kconfig/conf --syncconfig Kconfig
can't find file Kconfig
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:606: syncconfig] Error 2
make[1]: *** [Makefile:711: include/config/auto.conf.cmd] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.9.3-surface'
make: *** [Makefile:9: all] Error 2
ubuntu@surface-pro-6:~/surface-ipu3-cameras/ov5693$ make
make -C /lib/modules/"5.9.3-surface"/build M=/home/ubuntu/surface-ipu3-cameras/ov5693 modules
make[1]: Entering directory '/usr/src/linux-headers-5.9.3-surface'
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.
make[1]: *** [Makefile:719: include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-5.9.3-surface'
make: *** [Makefile:9: all] Error 2
Does it make a difference that I am running this under Wubi (20.04 LTS)? Thanks