Skip to content

Commit

Permalink
tools/autobuild: Add support for application .bin files for esp32.
Browse files Browse the repository at this point in the history
On esp32, the build output consists of:
- micropython.elf
- micropython.map
- micropython.bin -- application only
- micropython.uf2 -- application only
- firmware.bin -- bootloader, partition table and application

Currently everything is available at the download page except
micropython.bin.  This commit adds that file but with the extension changed
to .app-bin, to distinguish it from .bin (the full thing).

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Jul 27, 2023
1 parent cfcce4b commit d14ddcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/autobuild/build-boards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ function build_board {
elif [ -r $build_dir/micropython.$ext ]; then
# esp32 has micropython.elf, etc
mv $build_dir/micropython.$ext $dest
elif [ $ext = app-bin -a -r $build_dir/micropython.bin ]; then
# esp32 has micropython.bin which is just the application
mv $build_dir/micropython.bin $dest
fi
done
)
Expand Down Expand Up @@ -62,7 +65,7 @@ function build_boards {
}

function build_esp32_boards {
build_boards modesp32.c $1 $2 bin elf map uf2
build_boards modesp32.c $1 $2 bin elf map uf2 app-bin
}

function build_mimxrt_boards {
Expand Down

0 comments on commit d14ddcb

Please sign in to comment.