Commit 88b8f1fd authored by Federico Vaga's avatar Federico Vaga

Merge branch 'hotfix/v1.3.1'

parents aa4bd9bd 44546e54
......@@ -6,12 +6,12 @@ REPO_PARENT ?= ../../../
KVERSION ?= $(shell uname -r)
LINUX ?= /lib/modules/$(KVERSION)/build
GIT_VERSION := $(shell git describe --dirty --long --tags)
GIT_VERSION := $(shell git describe --dirty --long --tags | grep -o -E "[^v]*")
# Extract major, minor and patch number
ZIO_VERSION := -D__ZIO_MAJOR_VERSION=$(shell echo $(GIT_VERSION) | cut -d '-' -f 2 | cut -d '.' -f 1; )
ZIO_VERSION += -D__ZIO_MINOR_VERSION=$(shell echo $(GIT_VERSION) | cut -d '-' -f 2 | cut -d '.' -f 2; )
ZIO_VERSION += -D__ZIO_PATCH_VERSION=$(shell echo $(GIT_VERSION) | cut -d '-' -f 3)
ZIO_VERSION := -D__ZIO_MAJOR_VERSION=$(shell echo $(GIT_VERSION) | cut -d '-' -f 1 | cut -d '.' -f 1; )
ZIO_VERSION += -D__ZIO_MINOR_VERSION=$(shell echo $(GIT_VERSION) | cut -d '-' -f 1 | cut -d '.' -f 2; )
ZIO_VERSION += -D__ZIO_PATCH_VERSION=$(shell echo $(GIT_VERSION) | cut -d '-' -f 1 | cut -d '.' -f 3; )
export GIT_VERSION
export ZIO_VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment