12 lines
280 B
Makefile
12 lines
280 B
Makefile
|
|
||
|
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
|