This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ ifeq ($(wildcard boards/$(BOARD)/.),)
1414 $(error Invalid BOARD specified)
1515endif
1616
17- IDF_HASH =d072c551c360e95b36814acd07a2ecd60ec7362c
17+ IDF_HASH =d072c55
1818
1919TARGET ?= boot_app
2020
Original file line number Diff line number Diff line change 88# available at https://www.pycom.io/opensource/licensing
99#
1010
11- IDF_VER =$2
11+ IDF_HASH =$2
1212IDF_PATH=$1
13- CURR_VER =$( git -- git-dir=$IDF_PATH /.git rev-parse HEAD)
13+ CURR_HASH =$( git -c core.abbrev=7 -- git-dir=$IDF_PATH /.git rev-parse --short HEAD)
1414
15- if [ " ${CURR_VER } " = " ${IDF_VER } " ]; then
16- echo " IDF Version OK!"
15+ if [ " ${CURR_HASH } " = " ${IDF_HASH } " ]; then
16+ echo " IDF Version OK! $IDF_HASH "
1717 exit 0
1818else
19- echo " Incompatible IDF version... Expected $IDF_VER , but $IDF_PATH is pointing at $CURR_VER "
20- exit 1
19+ echo "
20+ Incompatible IDF git hash:
21+
22+ $IDF_HASH is expected from IDF_HASH from Makefile, but
23+ $CURR_HASH is what IDF_PATH=$IDF_PATH is pointing at.
24+
25+ You should probably update one (or multiple) of:
26+ * IDF_PATH environment variable
27+ * IDF_HASH variable in esp32/Makefile
28+ * IDF commit, e.g.
29+ cd \$ IDF_PATH && git checkout $IDF_HASH && git submodule sync && git submodule update --init --recursive && cd -
30+
31+ "
32+ exit 1
2133fi
You can’t perform that action at this time.
0 commit comments