Introduce DKMS support for DEB packages

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2020-11-02 18:51:55 +01:00
parent edc729bed8
commit 3060aaf95f
8 changed files with 47 additions and 11 deletions

View File

@@ -2,9 +2,9 @@
# Copyright(c) 2012-2020 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
# If KERNELRELEASE is defined, we've been invoked from the
# If $(M) is defined, we've been invoked from the
# kernel build system and can use its language.
ifneq ($(KERNELRELEASE),)
ifneq ($(M),)
include $(M)/config.mk
@@ -16,8 +16,9 @@ obj-y += cas_disk/
else
OCFDIR=$(PWD)/../ocf
KERNEL_DIR ?= "/lib/modules/$(shell uname -r)/build"
PWD=$(shell pwd)
KERNEL_VERSION ?= "$(shell uname -r)"
KERNEL_DIR ?= "/lib/modules/$(KERNEL_VERSION)/build"
MODULES_DIR=/lib/modules/$(shell uname -r)/extra
DISK_MODULE = cas_disk