以下为 makefile 内容
KERN_DIR = ~/wds/tina-v853-open/kernel/linux-4.9
all:
make -C $(KERN_DIR) M=$(PWD) modules
$(CROSS_COMPILE)gcc -o hello_drv_test hello_drv_test.c
clean:
make -C $(KERN_DIR) M=pwd
modules clean
rm -rf modules.order
rm -f hello_drv_test
obj-m+= hello_drv.o