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