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
This commit is contained in:
Michael Brooks
2021-06-14 14:39:25 -07:00
parent 2faefe1e9f
commit b0049c17dc

View File

@@ -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