make: use shell command to extract version string

This commit is contained in:
Mahavir Jain 2019-03-17 21:33:22 +08:00
parent 5beb2802e0
commit e4d97bef3d

View File

@ -329,7 +329,7 @@ endif
ifeq ("$(wildcard ${IDF_PATH}/version.txt)","") ifeq ("$(wildcard ${IDF_PATH}/version.txt)","")
IDF_VER_T := $(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_T := `cat ${IDF_PATH}/version.txt` IDF_VER_T := $(shell cat ${IDF_PATH}/version.txt)
endif endif
IDF_VER := $(shell echo "$(IDF_VER_T)" | cut -c 1-31) IDF_VER := $(shell echo "$(IDF_VER_T)" | cut -c 1-31)