Makefile: always provide VERSION_STRING if none set.

Without this set the compile-without-docker script did not work. They do
not have git installed.
This commit is contained in:
Wouter van Gulik
2023-12-24 23:27:32 +13:00
committed by egzumer
parent 986c0ce368
commit ab61c4e74f

View File

@@ -207,6 +207,11 @@ ifneq (, $(shell $(WHERE) git))
VERSION_STRING := $(shell git rev-parse --short HEAD)
endif
endif
# If there is still no VERSION_STRING we need to make one.
# It is needed for the firmware packing script
ifeq (, $(VERSION_STRING))
VERSION_STRING := NOGIT
endif
#VERSION_STRING := 230930b