Add defaults for GIT_HASH and GIT_DIRTY

This commit is contained in:
Rickey Fehr
2025-09-23 17:14:18 -07:00
parent ebe789aa52
commit 56bbc2ff9a
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ GRAPHICS := graphics
ARCH := -mthumb -mthumb-interwork
GIT_DIRTY := $(shell git diff-index --quiet HEAD -- || echo "-dirty")
GIT_HASH := $(shell git rev-parse --short HEAD)
GIT_HASH := $(shell git rev-parse --short HEAD || echo "undef")
GIT_C_FLAGS := -DGIT_HASH=\"$(GIT_HASH)\" -DGIT_DIRTY=\"$(GIT_DIRTY)\"
CFLAGS := -g -O3 -Wall -Werror\