]> granicus.if.org Git - esp-idf/commitdiff
make: Trim IDF_VER to fit a 32-bit field
authorKonstantin Kondrashov <konstantin@espressif.com>
Wed, 13 Mar 2019 12:01:28 +0000 (20:01 +0800)
committerKonstantin Kondrashov <konstantin@espressif.com>
Wed, 13 Mar 2019 12:01:28 +0000 (20:01 +0800)
Closes: https://github.com/espressif/esp-idf/issues/3131
make/project.mk

index a1307b0454fb2d516c25cef9384043d74cfd33bf..d9729c7194c5e4ea75784b2b7175063bb6ccc36b 100644 (file)
@@ -270,10 +270,11 @@ endif
 
 # If we have `version.txt` then prefer that for extracting IDF version
 ifeq ("$(wildcard ${IDF_PATH}/version.txt)","")
-IDF_VER := $(shell cd ${IDF_PATH} && git describe --always --tags --dirty)
+IDF_VER_T := $(shell cd ${IDF_PATH} && git describe --always --tags --dirty)
 else
-IDF_VER := `cat ${IDF_PATH}/version.txt`
+IDF_VER_T := `cat ${IDF_PATH}/version.txt`
 endif
+IDF_VER := $(shell echo "$(IDF_VER_T)"  | cut -c 1-31)
 
 # Set default LDFLAGS
 EXTRA_LDFLAGS ?=