mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 11:02:31 +02:00
Add dkms.conf and tweak Makefile to work with dkms
Specifically, allow building for an installed kernel that is not the running kernel
This commit is contained in:
3
Makefile
3
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
|
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
|
obj-m := facetimehd.o
|
||||||
|
|
||||||
|
KVERSION := $(KERNELRELEASE)
|
||||||
|
ifeq ($(origin KERNELRELEASE), undefined)
|
||||||
KVERSION := $(shell uname -r)
|
KVERSION := $(shell uname -r)
|
||||||
|
endif
|
||||||
KDIR := /lib/modules/$(KVERSION)/build
|
KDIR := /lib/modules/$(KVERSION)/build
|
||||||
PWD := $(shell pwd)
|
PWD := $(shell pwd)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user