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