This repository was archived by the owner on Sep 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-22
lines changed Expand file tree Collapse file tree 3 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ ifeq ($(wildcard boards/$(BOARD)/.),)
14
14
$(error Invalid BOARD specified)
15
15
endif
16
16
17
- IDF_VERSION =3.3.1
17
+ IDF_HASH =d072c55
18
18
19
19
TARGET ?= boot_app
20
20
Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ $(OBJ): | $(GEN_PINS_HDR)
820
820
821
821
# Check Dependencies (IDF version, Frozen code and IDF LIBS)
822
822
CHECK_DEP :
823
- $(Q ) bash tools/idfVerCheck.sh $(IDF_PATH ) " $( IDF_VERSION ) "
823
+ $(Q ) bash tools/idfVerCheck.sh $(IDF_PATH ) " $( IDF_HASH ) "
824
824
$(Q ) bash tools/mpy-build-check.sh $(BOARD ) $(BTYPE ) $(VARIANT )
825
825
$(Q ) $(PYTHON ) check_secure_boot.py --SECURE $(SECURE )
826
826
ifeq ($(COPY_IDF_LIB ) , 1)
Original file line number Diff line number Diff line change 8
8
# available at https://www.pycom.io/opensource/licensing
9
9
#
10
10
11
- IDF_VER=" idf_v" $2
12
- CURR_VER=" $( git --git-dir=$1 /.git branch | grep \* | cut -d ' ' -f2) "
11
+ IDF_HASH=$2
12
+ IDF_PATH=$1
13
+ CURR_HASH=$( git -c core.abbrev=7 --git-dir=$IDF_PATH /.git rev-parse --short HEAD)
13
14
14
- if [ " ${CURR_VER } " = " ${IDF_VER } " ]; then
15
- echo " IDF Version OK!"
15
+ if [ " ${CURR_HASH } " = " ${IDF_HASH } " ]; then
16
+ echo " IDF Version OK! $IDF_HASH "
16
17
exit 0
17
18
else
18
- echo " Incompatible IDF version...Checking out IDF version $2 !"
19
- if ! git --git-dir=$1 /.git --work-tree=$1 checkout ${IDF_VER} ; then
20
- echo " Cannot checkout IDF version ${IDF_VER} !...Please make sure latest idf_v${IDF_VER} branch is fetched" >&2
21
- exit 1
22
- fi
23
- cd ${IDF_PATH}
24
- if ! git submodule sync ; then
25
- echo " Cannot checkout IDF version ${IDF_VER} !...Please make sure latest idf_v${IDF_VER} branch is fetched" >&2
26
- exit 1
27
- fi
28
- if ! git submodule update --init ; then
29
- echo " Cannot checkout IDF version ${IDF_VER} !...Please make sure latest idf_v${IDF_VER} branch is fetched" >&2
30
- exit 1
31
- fi
32
- exit 0
33
- fi
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
33
+ fi
You can’t perform that action at this time.
0 commit comments