Modify version check flow

Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
This commit is contained in:
Rafal Stefanowski
2020-06-09 10:29:01 +02:00
parent f0594dce3a
commit afa0c1b53f
7 changed files with 121 additions and 48 deletions

View File

@@ -15,8 +15,6 @@ obj-y += cas_disk/
# line; invoke the kernel build system.
else
VERSION_FILE=$(PWD)/CAS_VERSION
OCFDIR=$(PWD)/../ocf
KERNEL_DIR ?= "/lib/modules/$(shell uname -r)/build"
PWD=$(shell pwd)
@@ -31,9 +29,6 @@ MODPROBE:=$(shell which modprobe)
all: default
$(VERSION_FILE):
./CAS_VERSION_GEN
# Extra targets and file configuration
ifneq ($(wildcard $(PWD)/extra.mk),)
include $(PWD)/extra.mk
@@ -41,7 +36,7 @@ else
sync distsync:
endif
default: $(VERSION_FILE) sync
default: sync
cd $(KERNEL_DIR) && $(MAKE) M=$(PWD) modules
clean: