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 +7
-19
lines changed Expand file tree Collapse file tree 3 files changed +7
-19
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 =d072c551c360e95b36814acd07a2ecd60ec7362c
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_VER=$2
12
+ IDF_PATH=$1
13
+ CURR_VER=$( git --git-dir=$IDF_PATH /.git rev-parse HEAD)
13
14
14
15
if [ " ${CURR_VER} " = " ${IDF_VER} " ]; then
15
16
echo " IDF Version OK!"
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
19
+ echo " Incompatible IDF version... Expected $IDF_VER , but $IDF_PATH is pointing at $CURR_VER "
21
20
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
21
+ fi
You can’t perform that action at this time.
0 commit comments