M7350/oe-core/meta/recipes-kernel/hello-mod/files/Makefile

15 lines
292 B
Makefile
Raw Normal View History

2024-09-09 08:52:07 +00:00
obj-m := hello.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers