linux 本机内核模块

make -C /lib/modules/4.13.0-36-generic/build M=/$(pwd) modules

内核里只需要写obj-m:=hello.o

原文地址:https://www.cnblogs.com/cnchengv/p/9405860.html