initial hello
This commit is contained in:
15
hello/Makefile
Normal file
15
hello/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
obj-m := hello.o
|
||||
else
|
||||
KERNELDIR ?= /usr/src/linux-headers-4.19.66-v7+
|
||||
PWD := $(shell pwd)
|
||||
|
||||
default:
|
||||
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.order Module.symvers
|
||||
|
||||
endif
|
||||
|
Reference in New Issue
Block a user