Skip to content

Commit 0256e1a

Browse files
committed
tools/autobuild: Use separate IDF version to build newer esp32 SoCs.
Signed-off-by: Damien George <[email protected]>
1 parent 7f69246 commit 0256e1a

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

tools/autobuild/autobuild.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,22 @@
44
#
55
# Requirements:
66
# - 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
89
# - MICROPY_AUTOBUILD_MICROPYTHON_REPO must be set to location of micropython repository
910
# - MICROPY_AUTOBUILD_MAKE must be set to the make command to use, eg "make -j2"
1011
#
1112
# Optional settings:
1213
# - MICROPY_AUTOBUILD_REMOTE_MACHINE can be set to a remote ssh machine to copy files to
1314
# - MICROPY_AUTOBUILD_REMOTE_DIR can be set to destination directory on remote machine
1415

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"
1723
exit 1
1824
fi
1925

@@ -63,7 +69,8 @@ ${AUTODIR}/build-cc3200-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
6369
cd ../esp8266
6470
${AUTODIR}/build-esp8266-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
6571
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}
6774
cd ../rp2
6875
${AUTODIR}/build-rp2-latest.sh ${FW_TAG} ${LOCAL_FIRMWARE}
6976
cd ../mimxrt

tools/autobuild/build-esp32-latest.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ fi
3939

4040
source $idf_path/export.sh
4141

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

0 commit comments

Comments
 (0)