Linux下模块编译错误

cc1: fatal error: include/generated/autoconf.h: No such file or directory
compilation terminated.

解决方法:在内核树下面执行make prepare 

/bin/sh: scripts/mod/modpost: not found

解决方法:在内核树下面执行make scripts 

原文地址:https://www.cnblogs.com/yinsua/p/3085149.html