linux_module_learn/my_first_module/Makefile

17 lines
296 B
Makefile
Raw Permalink Normal View History

2023-07-22 13:42:32 +08:00
KERNEL_DIR=../../ebf_6ull_linux
ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-
export ARCH CROSS_COMPILE
obj-m := char_dev.o
all:
$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) modules
.PHONE:clean copy
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(CURDIR) clean
copy:
sudo cp *.ko /home/embedfire/workdir