From 76945312a9d2e786bebc9bb5711f5962365c5c20 Mon Sep 17 00:00:00 2001 From: Joe Barnett Date: Thu, 21 Apr 2016 15:57:16 -0700 Subject: [PATCH] Add dkms.conf and tweak Makefile to work with dkms Specifically, allow building for an installed kernel that is not the running kernel --- Makefile | 3 +++ dkms.conf | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 dkms.conf diff --git a/Makefile b/Makefile index 0e4b2a8..0ddf666 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,10 @@ facetimehd-objs := fthd_ddr.o fthd_hw.o fthd_drv.o fthd_ringbuf.o fthd_isp.o fthd_v4l2.o fthd_buffer.o fthd_debugfs.o obj-m := facetimehd.o +KVERSION := $(KERNELRELEASE) +ifeq ($(origin KERNELRELEASE), undefined) KVERSION := $(shell uname -r) +endif KDIR := /lib/modules/$(KVERSION)/build PWD := $(shell pwd) diff --git a/dkms.conf b/dkms.conf new file mode 100644 index 0000000..4270d1d --- /dev/null +++ b/dkms.conf @@ -0,0 +1,7 @@ +PACKAGE_NAME=facetimehd +PACKAGE_VERSION=0.1 +CLEAN="make clean" +BUILT_MODULE_NAME[0]="facetimehd" +BUILT_MODULE_LOCATION[0]="." +DEST_MODULE_LOCATION[0]="/extra" +AUTOINSTALL="yes"