linux 本机内核模块

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

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

posted @ 2018-08-02 10:58  cnchengv  阅读(116)  评论(0)    收藏  举报