File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 4
4
#
5
5
# Requirements:
6
6
# - All toolchains must be in path (arm-none-eabi-gcc, xtensa-lx106-elf)
7
- # - IDF_PATH_V4 must be set
7
+ # - IDF_PATH_V42 must be set
8
+ # - IDF_PATH_V43 must be set
8
9
# - MICROPY_AUTOBUILD_MICROPYTHON_REPO must be set to location of micropython repository
9
10
# - MICROPY_AUTOBUILD_MAKE must be set to the make command to use, eg "make -j2"
10
11
#
11
12
# Optional settings:
12
13
# - MICROPY_AUTOBUILD_REMOTE_MACHINE can be set to a remote ssh machine to copy files to
13
14
# - MICROPY_AUTOBUILD_REMOTE_DIR can be set to destination directory on remote machine
14
15
15
- if [ ! -d " $IDF_PATH_V4 " ]; then
16
- echo " must set IDF_PATH_V4"
16
+ if [ ! -d " $IDF_PATH_V42 " ]; then
17
+ echo " must set IDF_PATH_V42"
18
+ exit 1
19
+ fi
20
+
21
+ if [ ! -d " $IDF_PATH_V43 " ]; then
22
+ echo " must set IDF_PATH_V43"
17
23
exit 1
18
24
fi
19
25
@@ -63,7 +69,8 @@ ${AUTODIR}/build-cc3200-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
63
69
cd ../esp8266
64
70
${AUTODIR} /build-esp8266-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
65
71
cd ../esp32
66
- ${AUTODIR} /build-esp32-latest.sh ${IDF_PATH_V4} ${FW_TAG} ${LOCAL_FIRMWARE}
72
+ ${AUTODIR} /build-esp32-latest.sh ${IDF_PATH_V42} ${FW_TAG} ${LOCAL_FIRMWARE}
73
+ ${AUTODIR} /build-esp32-latest.sh ${IDF_PATH_V43} ${FW_TAG} ${LOCAL_FIRMWARE}
67
74
cd ../rp2
68
75
${AUTODIR} /build-rp2-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
69
76
cd ../mimxrt
Original file line number Diff line number Diff line change 39
39
40
40
source $idf_path /export.sh
41
41
42
- # build the versions
43
- do_build esp32 GENERIC FROZEN_MANIFEST=$( pwd) /boards/manifest_release.py
44
- do_build esp32spiram GENERIC_SPIRAM FROZEN_MANIFEST=$( pwd) /boards/manifest_release.py
45
- do_build tinypico UM_TINYPICO
42
+ # build the boards, based on the IDF version
43
+ if idf.py --version | grep -q v4.2; then
44
+ do_build esp32 GENERIC FROZEN_MANIFEST=$( pwd) /boards/manifest_release.py
45
+ do_build esp32spiram GENERIC_SPIRAM FROZEN_MANIFEST=$( pwd) /boards/manifest_release.py
46
+ do_build tinypico UM_TINYPICO
47
+ else
48
+ do_build esp32c3 GENERIC_C3
49
+ fi
You can’t perform that action at this time.
0 commit comments