data/method/一些思考/系统移植+驱动/字符设备模板/用户空间与内核空间的信息读写/Makefile

13 lines
342 B
Makefile

KERNELDIR := /home/seal/luozhikun/platform_ssc337/kernel_ssc337
#KERNELDIR := /home/seal/luozhikun/platform_hi3516cv500/kernel_4.9.37_hi3516cv500
CURRENT_PATH := $(shell pwd)
obj-m := test.o
build: kernel_modules
kernel_modules:
$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean