1+ # Version number notes!
2+ # Before building release version, bump the version number thus:
3+ #
4+ # 1. Tag the master with: git tag -a v1.1 then enter an annotation message (it's like a commit message)
5+ # 2. The above snippet used v1.1 as example..... change that v number to whatever you need!
6+ # 3. Then try: git describe to see what version is displayed
7+ # 4. Then run make in usual way
8+
9+
110# You can build this example in three ways:
211# 'separate' - Separate espfs and binaries, no OTA upgrade
312# 'combined' - Combined firmware blob, no OTA upgrade
@@ -17,7 +26,10 @@ OUTPUT_TYPE=ota
1726# commit is the number of commits since the last tag
1827# date is the date of the build
1928# hash is a unique substring of the hash of the last commit
20- GITDESC =$(shell git describe master)
29+
30+ # Ensure --long tag added: GITDESC=$(shell git describe --long master)
31+
32+ GITDESC =$(shell git describe --long master)
2133GITDESC_WORDS =$(subst -, ,$(GITDESC ) )
2234GIT_VERSION =$(word 1,$(GITDESC_WORDS ) )
2335GIT_COMMIT =$(word 2,$(GITDESC_WORDS ) )
2840 GIT_COMMIT_HASH_SUFFIX =$(subst -, ,-$(GIT_COMMIT ) ) -$(GIT_HASH )
2941endif
3042VERSION =$(GIT_VERSION ) ($(shell date "+% Y-% m-% d % H:% M:% S")$(GIT_COMMIT_HASH_SUFFIX ) )
43+ # VERSION=1.1 ($(shell date "+%Y-%m-%d %H:%M:%S")$(GIT_COMMIT_HASH_SUFFIX))
3144$(info VERSION $(VERSION))
3245
3346# SPI flash size, in K
0 commit comments