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 authored and egzumer committed 2023-12-25 01:01:53 +01:00
1 parent 986c0ce368
commit ab61c4e74f
1 file changed
+5
+5
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