From 59520a001c9708a3546623c4a12917e3ade0703f Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Fri, 21 Jun 2019 17:23:17 -0400 Subject: [PATCH] Fix setting KERNEL_VERSION in modules makefile Shell command evaluation should be performed using 'shell' function. This fixes 'make install'. Signed-off-by: Adam Rutkowski --- modules/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Makefile b/modules/Makefile index e6df1bc..e837361 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -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