Merge pull request #829 from masahir0y/build

Makefile: use git describe for BUILD_STRING
This commit is contained in:
davidcunado-arm 2017-02-16 09:56:17 +00:00 committed by GitHub
commit 2866ea1437
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ endif
# Default build string (git branch and commit)
ifeq (${BUILD_STRING},)
BUILD_STRING := $(shell git log -n 1 --pretty=format:"%h")
BUILD_STRING := $(shell git describe --always --dirty --tags 2> /dev/null)
endif
VERSION_STRING := v${VERSION_MAJOR}.${VERSION_MINOR}(${BUILD_TYPE}):${BUILD_STRING}