obj-m := mytest.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
rm -r *.ko *.o *.symvers *.markers *.order *.mod.c
经常记不住,还是写在博客好一点。https://static.assets-stash.eet-china.com/album/old-resources/2009/2/21/23d59bda-6444-4635-9f95-35e93fb33560.rar
文章评论(0条评论)
登录后参与讨论