Kernel_dir := /home/chenyf/desktop/stm32mp157/linux/linux-stm32mp-5.4.31-r0/linux-5.4.31 current_dir := $(shell pwd) obj-m := new_char.o build: kernel_modules kernel_modules: $(MAKE) -C $(Kernel_dir) M=$(current_dir) modules clean: $(MAKE) -C $(Kernel_dir) M=$(current_dir) clean