From 0f1ce19840b313ec4f4bbb840ff4ef22080aeba5 Mon Sep 17 00:00:00 2001 From: 4s1 Date: Mon, 3 Oct 2016 10:14:38 +0200 Subject: [PATCH] dkms compatibility Build against specified kernel version (dkms ... -k VERSION) or against current running (uname -r) if not specified --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e422cb6..3e5aaf2 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -KDIR ?= /lib/modules/$(shell uname -r)/build +kernelver ?= $(shell uname -r) +KDIR ?= /lib/modules/$(kernelver)/build PWD := $(shell pwd) MODDEFS := CONFIG_DVB_CORE=m CONFIG_DVB_DDBRIDGE=m CONFIG_DVB_DRXK=m CONFIG_DVB_TDA18271C2DD=m CONFIG_DVB_CXD2099=m CONFIG_DVB_LNBP21=m CONFIG_DVB_STV090x=m CONFIG_DVB_STV6110x=m CONFIG_DVB_STV0367=m CONFIG_DVB_TDA18212=m CONFIG_DVB_STV0367DD=m CONFIG_DVB_TDA18212DD=m CONFIG_DVB_OCTONET=m CONFIG_DVB_CXD2843=m CONFIG_DVB_STV0910=m CONFIG_DVB_STV6111=m CONFIG_DVB_LNBH25=m CONFIG_DVB_MXL5XX=m