driver/4-device-tree/Makefile

12 lines
280 B
Makefile
Raw Normal View History

2024-01-30 13:39:31 +00:00
Kernel_dir := /home/chenyf/desktop/stm32mp157/linux/linux-stm32mp-5.4.31-r0/linux-5.4.31
current_dir := $(shell pwd)
obj-m := led.o
build: kernel_modules
kernel_modules:
$(MAKE) -C $(Kernel_dir) M=$(current_dir) modules
clean:
$(MAKE) -C $(Kernel_dir) M=$(current_dir) clean