summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordavidcunado-arm <david.cunado@arm.com>2017-02-16 09:56:17 +0000
committerGitHub <noreply@github.com>2017-02-16 09:56:17 +0000
commit2866ea1437af45a13ee3400132c03b7fd14806df (patch)
treea04ad4a65e6af0e75e06aeb38574999d4ac7029b /Makefile
parent7a1c268fd80e85fa00998533d8993c660682e88d (diff)
parentbee71c7a806fd3856af2ebfbe117fef38e29f343 (diff)
Merge pull request #829 from masahir0y/build
Makefile: use git describe for BUILD_STRING
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9a080d3e..5185de7b 100644
--- a/Makefile
+++ b/Makefile
@@ -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}