当前位置: 技术问答>linux和unix
编译驱动时一直出现以下错误
来源: 互联网 发布时间:2016-06-23
本文导语: echo " ERROR: Kernel configuration is invalid."; echo " include/linux/autoconf.h or include/config/auto.conf are missing."; echo " Run 'make oldconfig && make prepare' on kernel src to fix it make oldconfig make prepare后仍无济于事 一直make就...
echo " ERROR: Kernel configuration is invalid.";
echo " include/linux/autoconf.h or include/config/auto.conf are missing.";
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
make oldconfig make prepare后仍无济于事
一直make就一直这样,是源码包出问题了吗?
echo " include/linux/autoconf.h or include/config/auto.conf are missing.";
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
make oldconfig make prepare后仍无济于事
一直make就一直这样,是源码包出问题了吗?
|
交叉编译要加ARCH=和CROSS_COMPILE=环境变量
|
rm -f .config
make menuconfig
make
make menuconfig
make
|
make distclean清理以前configure和make的痕迹与中间文件,
然后再make menuconfig试试
然后再make menuconfig试试
|
这个应该是你编译驱动时,在系统中缺少了kernel headers包,也有可能是缺少了kernel-devel包。建议你先在系统中安装了这两个包,然后再执行make oldconfig。此时再执行make prepare试试
|
rm -f .config
make your config
make
make your config
make
|
交叉编译需要加机型、平台参数等