Module working? Writer done

This commit is contained in:
Zhengyi Chen 2024-01-27 05:38:51 +00:00
parent ede1b4ff6a
commit 200739c892
2 changed files with 59 additions and 50 deletions

View file

@ -6,8 +6,10 @@ CC += ${MY_CFLAGS}
KDIR := /lib/modules/$(shell uname -r)/build
KDIR_CROSS := ${HOME}/Git/linux
KDIR_UOE := /disk/scratch/s2018374/linux
KDIR_SSHFS := /tmp/inf-sshfs/linux
PWD := $(shell pwd)
GITDIR := $(shell git rev-parse --show-toplevel)
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
@ -21,6 +23,10 @@ all-uoe:
$(MAKE) -C $(KDIR_UOE) M=$(PWD) modules
EXTRA_CFLAGS="$(MY_CFLAGS)"
all-sshfs:
$(MAKE) -C $(KDIR_SSHFS) M=$(PWD) modules
EXTRA_CFLAGS="$(MY_CFLAGS)"
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
@ -29,3 +35,11 @@ clean-cross:
clean-uoe:
$(MAKE) -C $(KDIR_UOE) M=$(PWD) clean
clean-sshfs:
$(MAKE) -C $(KDIR_SSHFS) M=$(PWD) clean
# Extra
install:
cp my_shmem.ko $(GITDIR)/test/shared