misc: Updated the build system to use the new version header generator script, fixing #1043

This commit is contained in:
dragonmux 2022-06-11 19:00:22 -04:00 committed by Piotr Esden-Tempski
parent e388fbbb2c
commit 7846112a7b
1 changed files with 2 additions and 7 deletions

View File

@ -174,13 +174,8 @@ all_platforms:
command.c: include/version.h
GIT_VERSION := $(shell git describe --always --dirty --tags)
VERSION_HEADER := \#define FIRMWARE_VERSION "$(GIT_VERSION)"
include/version.h: FORCE
ifneq ($(file <include/version.h), $(VERSION_HEADER))
@echo " GEN GIT $@"
$(Q)$(file >$@,$(VERSION_HEADER))
endif
@echo " GEN $@"
$(Q)../scripts/gen-version.sh
-include *.d