make: Trim IDF_VER to fit a 32-bit field

Closes: https://github.com/espressif/esp-idf/issues/3131
This commit is contained in:
Konstantin Kondrashov 2019-03-13 20:01:28 +08:00
parent edb0374b9d
commit 725f0a7545

View File

@ -270,10 +270,11 @@ endif
# If we have `version.txt` then prefer that for extracting IDF version # If we have `version.txt` then prefer that for extracting IDF version
ifeq ("$(wildcard ${IDF_PATH}/version.txt)","") 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 else
IDF_VER := `cat ${IDF_PATH}/version.txt` IDF_VER_T := `cat ${IDF_PATH}/version.txt`
endif endif
IDF_VER := $(shell echo "$(IDF_VER_T)" | cut -c 1-31)
# Set default LDFLAGS # Set default LDFLAGS
EXTRA_LDFLAGS ?= EXTRA_LDFLAGS ?=