Allow overriding version

In order to use the same version as the board firmware we need to be
able to specify the version string for the EC.

Ref: https://github.com/system76/firmware-open/issues/75
This commit is contained in:
Tim Crawford 2020-04-06 14:59:41 -06:00 committed by Jeremy Soller
parent a8b38d6b37
commit 2a86572f2b

View File

@ -10,7 +10,7 @@ endif
# Calculate version
DATE=$(shell git show --format="%cd" --date="format:%Y-%m-%d" --no-patch)
REV=$(shell git describe --always --dirty)
VERSION=$(DATE)_$(REV)
VERSION?=$(DATE)_$(REV)
# Set build directory
BUILD=build/$(BOARD)/$(VERSION)