This commit is contained in:
huoji
2023-05-07 16:29:16 +08:00
commit 9c4c45ef38
49 changed files with 4928 additions and 0 deletions

10
linux_kernel/Makefile Normal file
View File

@@ -0,0 +1,10 @@
CONFIG_MODULE_SIG=n
obj-m += safe_duck.o
safe_duck-objs := main.o msg.o global.o some_struct.o
PWD := $(shell pwd)
KVER := $(shell uname -r)
KDIR := /lib/modules/$(KVER)/build
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions *.o.d *.mod