Amend git describe to always show short SHA and fix macro name

This commit is contained in:
Silver Kits 2016-09-08 13:12:20 +03:00
parent 667a72739c
commit 80127401b5

View File

@ -43,7 +43,7 @@ CFLAGS = -Wall \
-Os \ -Os \
-mmcu=$(BOARD) \ -mmcu=$(BOARD) \
-DF_CPU=16000000UL \ -DF_CPU=16000000UL \
-DGIT_SHA=\"$(shell git describe --abbrev=6 --dirty --always --tags)\" \ -DGIT_DESCR=\"$(shell git describe --abbrev=6 --dirty --always --tags --long)\" \
-std=c11 -std=c11
# Linker flags # Linker flags