编译内核make mrproper报错

编译内核make mrproper报错

image

第一个驱动程序make报错

make -C /home/book/100ask_imx6ull-qemu/linux-4.9.88 M=pwd modules
make[1]: 进入目录“/home/book/100ask_imx6ull-qemu/linux-4.9.88”

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 ./Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /home/book/01_all_series_quickstart/05_嵌入式Linux驱动开发基础知识/source/01_hello_drv/hello_drv.o
In file included from :0:0:
././include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
#include <generated/autoconf.h>
^
compilation terminated.
scripts/Makefile.build:299: recipe for target ‘/home/book/01_all_series_quickstart/05_嵌入式Linux驱动开发基础知识/source/01_hello_drv/hello_drv.o’ failed
make[2]: *** [/home/book/01_all_series_quickstart/05_嵌入式Linux驱动开发基础知识/source/01_hello_drv/hello_drv.o] Error 1
Makefile:1499: recipe for target ‘module/home/book/01_all_series_quickstart/05_嵌入式Linux驱动开发基础知识/source/01_hello_drv’ failed
make[1]: *** [module/home/book/01_all_series_quickstart/05_嵌入式Linux驱动开发基础知识/source/01_hello_drv] Error 2
make[1]: 离开目录“/home/book/100ask_imx6ull-qemu/linux-4.9.88”
Makefile:13: recipe for target ‘all’ failed
make: *** [all] Error 2