-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dkms builds for linux 6.10 and above
- Loading branch information
Showing
5 changed files
with
48 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
build | ||
*.o | ||
.*.cmd | ||
*.symvers | ||
*.ko | ||
*.mod.c | ||
*.mod | ||
*.order | ||
*.out | ||
*.swp | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,6 @@ | ||
obj-y += memflow-kmod/ | ||
|
||
MCFLAGS += -O3 | ||
ccflags-y += ${MCFLAGS} | ||
CC += ${MCFLAGS} | ||
|
||
ifndef KERNELDIR | ||
KDIR := /lib/modules/$(shell uname -r)/build | ||
else | ||
KDIR := $(KERNELDIR) | ||
endif | ||
|
||
ifndef OUT_DIR | ||
KOUTPUT := $(PWD)/build | ||
else | ||
KOUTPUT := $(OUT_DIR) | ||
endif | ||
|
||
KOUTPUT_MAKEFILE := $(KOUTPUT)/Makefile | ||
|
||
all: $(KOUTPUT_MAKEFILE) | ||
@echo "$(KOUTPUT)" | ||
|
||
make -C $(KDIR) M=$(KOUTPUT) src=$(PWD)/memflow-kmod modules | ||
|
||
$(KOUTPUT): | ||
mkdir -p "$@" | ||
|
||
$(KOUTPUT_MAKEFILE): $(KOUTPUT) | ||
touch "$@" | ||
all: | ||
cd memflow-kmod && make all | ||
|
||
clean: | ||
make -C $(KDIR) M=$(KOUTPUT) src=$(PWD)/memflow-kmod clean | ||
$(shell rm $(KOUTPUT_MAKEFILE)) | ||
rmdir $(KOUTPUT) | ||
cd memflow-kmod && make clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
MAKE="make KERNELDIR=/lib/modules/${kernelver}/build" | ||
CLEAN="make clean" | ||
BUILT_MODULE_NAME=memflow | ||
BUILT_MODULE_LOCATION=build/ | ||
BUILT_MODULE_LOCATION=memflow-kmod/ | ||
DEST_MODULE_LOCATION="/updates" | ||
PACKAGE_NAME=memflow-dkms | ||
PACKAGE_VERSION=0.1.7 | ||
PACKAGE_VERSION=0.1.8 | ||
REMAKE_INITRD=no | ||
AUTOINSTALL=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
obj-y += memflow-kmod/ | ||
|
||
MCFLAGS += -O3 | ||
ccflags-y += ${MCFLAGS} | ||
CC += ${MCFLAGS} | ||
|
||
ifndef KERNELDIR | ||
KDIR := /lib/modules/$(shell uname -r)/build | ||
else | ||
KDIR := $(KERNELDIR) | ||
endif | ||
|
||
KOUTPUT := $(PWD) | ||
|
||
all: | ||
@echo "$(KOUTPUT)" | ||
make -C $(KDIR) M=$(KOUTPUT) src=$(PWD) modules | ||
|
||
clean: | ||
make -C $(KDIR) M=$(KOUTPUT) src=$(PWD) clean | ||
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c | ||
rm -f Module.markers Module.symvers modules.order | ||
rm -rf .tmp_versions Modules.symvers |