init: dev

This commit is contained in:
Sky
2026-02-10 13:44:36 +00:00
commit d4cbcb6ab4
11 changed files with 943 additions and 0 deletions

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
obj-m += ./src/main.o
# KDIR 会由 nix-shell 提供,或者手动指定
all:
$(MAKE) -C $(KDIR) M=$(PWD) ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- clean