summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-02-02 20:15:51 +1100
committerDamien George <damien@micropython.org>2022-02-02 23:47:49 +1100
commit102cc12dbbe10c3caf3e1e141be4ab4366dbd02f (patch)
treeda42e91ff301b5781d623f65d2331f0cfdb2dd6c
parent71b3ce3aceb25139d3f41af9441ade9d446498bb (diff)
tools/autobuild: Provide .uf2 images for esp32 builds when available.
Signed-off-by: Damien George <damien@micropython.org>
-rwxr-xr-xtools/autobuild/build-boards.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/autobuild/build-boards.sh b/tools/autobuild/build-boards.sh
index 4b5259b66..c6493f8fc 100755
--- a/tools/autobuild/build-boards.sh
+++ b/tools/autobuild/build-boards.sh
@@ -30,8 +30,8 @@ function build_board {
dest=$dest_dir/$descr$fw_tag.$ext
if [ -r $build_dir/firmware.$ext ]; then
mv $build_dir/firmware.$ext $dest
- else
- # esp32 has micropython.elf and micropython.map
+ elif [ -r $build_dir/micropython.$ext ]; then
+ # esp32 has micropython.elf, etc
mv $build_dir/micropython.$ext $dest
fi
done
@@ -93,7 +93,7 @@ function build_esp32_boards {
else
if [ $mcu != esp32 ]; then
# build esp32-s2/s3/c3 based boards with IDF v4.4+
- build_board $board_json $fw_tag $dest_dir bin elf map
+ build_board $board_json $fw_tag $dest_dir bin elf map uf2
fi
fi
done