make: better git version handling
@@ -8,10 +8,10 @@ OD=arm-none-eabi-objdump
SE=arm-none-eabi-size
GCC_VERSION = $(shell arm-none-eabi-gcc -dumpversion)
-GIT_VERSION = unknow
+GIT_VERSION = $(shell cat .git/refs/heads/master)
ifneq ($(shell which git),)
- GIT_VERSION = $(shell git describe --always --long)
+ GIT_VERSION = $(shell git rev-parse HEAD)
endif
INCLUDE = src \
