mbed_crypto: Always describe the current version

Even with a shallow clone of the repo where there are no tags available
to version with, don't error and instead show a unique abbreviated
commit hash as fallback.
This commit is contained in:
Jaeden Amero 2018-09-27 10:14:36 +01:00 committed by Gilles Peskine
parent 3e954cf84d
commit 3a33c01a98

View File

@ -213,7 +213,7 @@ crypto/%: %
$(call rename_mbedcrypto,$@) $(call rename_mbedcrypto,$@)
crypto/VERSION.txt: FORCE crypto/VERSION.txt: FORCE
@git describe --tags --abbrev=12 --dirty > $@ @git describe --tags --abbrev=12 --dirty --always > $@
mbedcrypto.tar.gz: $(LIB_FILES) $(INC_FILES) $(TEST_FILES) $(OTHER_FILES) mbedcrypto.tar.gz: $(LIB_FILES) $(INC_FILES) $(TEST_FILES) $(OTHER_FILES)
@echo $@ @echo $@