From b0049c17dc39e2511c6cc2f023751b709d66a6d4 Mon Sep 17 00:00:00 2001 From: Michael Brooks Date: Mon, 14 Jun 2021 14:39:25 -0700 Subject: [PATCH] More Makefile Fixes The Makefile wasn't in the appropriate format for DKMS. While it did work on the Coral Dev Board, it failed on other devices. Tested: Coral Dev Board, x86 Debian Machine --- src/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Makefile b/src/Makefile index cd5fcd9..ef976ea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,3 +7,11 @@ obj-m += apex.o gasket-objs := gasket_core.o gasket_ioctl.o gasket_interrupt.o gasket_page_table.o gasket_sysfs.o apex-objs := apex_driver.o + +KVERSION := $(shell uname -r) + +all: + $(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules + +clean: + $(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean