data/method/一些思考/系统移植+驱动/字符设备模板/模板/Makefile

13 lines
343 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 := test1.o
build: kernel_modules
kernel_modules:
$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean