Skip to content

Commit 102cc12

Browse files
committed
tools/autobuild: Provide .uf2 images for esp32 builds when available.
Signed-off-by: Damien George <[email protected]>
1 parent 71b3ce3 commit 102cc12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/autobuild/build-boards.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ function build_board {
3030
dest=$dest_dir/$descr$fw_tag.$ext
3131
if [ -r $build_dir/firmware.$ext ]; then
3232
mv $build_dir/firmware.$ext $dest
33-
else
34-
# esp32 has micropython.elf and micropython.map
33+
elif [ -r $build_dir/micropython.$ext ]; then
34+
# esp32 has micropython.elf, etc
3535
mv $build_dir/micropython.$ext $dest
3636
fi
3737
done
@@ -93,7 +93,7 @@ function build_esp32_boards {
9393
else
9494
if [ $mcu != esp32 ]; then
9595
# build esp32-s2/s3/c3 based boards with IDF v4.4+
96-
build_board $board_json $fw_tag $dest_dir bin elf map
96+
build_board $board_json $fw_tag $dest_dir bin elf map uf2
9797
fi
9898
fi
9999
done

0 commit comments

Comments
 (0)