Merge pull request #3 from sweeze/master

Add dkms.conf and tweak Makefile to work with dkms
This commit is contained in:
Nicola Asuni
2016-04-26 09:43:45 +01:00
2 changed files with 10 additions and 0 deletions

View File

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

7
dkms.conf Normal file
View File

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