build: git describe is better than rev-parse

This commit is contained in:
Pavol Rusnak 2017-10-12 16:09:45 +02:00
parent 2fc69bed61
commit 5ea75b469f
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ BOARDLOADER_MAXSIZE = 49152
BOOTLOADER_MAXSIZE = 131072
FIRMWARE_MAXSIZE = 786432
GITREV=$(shell git rev-parse --short HEAD)
GITREV=$(shell git describe --always --dirty)
CFLAGS += -DGITREV=$(GITREV)
## help commands: