Merge pull request #43 from arutk/fix_make_install

Fix setting KERNEL_VERSION in modules makefile
This commit is contained in:
Jan Musiał 2019-06-21 15:29:00 +02:00 committed by GitHub
commit 488fd7eb6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ VERSION_FILE=$(PWD)/CAS_VERSION
OCFDIR=$(PWD)/../ocf
KERNEL_DIR ?= "/lib/modules/$(shell uname -r)/build"
PWD=$(shell pwd)
KERNEL_VERSION := $(cd $KERNEL_DIR; make kernelversion)
KERNEL_VERSION := $(shell $(MAKE) -C $(KERNEL_DIR) --no-print-directory kernelversion)
MODULES_DIR=/lib/modules/$(KERNEL_VERSION)/extra
DISK_MODULE = cas_disk