summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-07-25 00:15:15 +1000
committerDamien George <damien@micropython.org>2023-07-27 13:10:19 +1000
commitd14ddcbdb5f373bf73df8e7ff9e3b1a60d7d5e25 (patch)
tree0ff1daedf6ff11423a3a19c43cdee185f5c9bc3c
parentcfcce4b5311c7b112d3628392c8012b4c29bdd63 (diff)
tools/autobuild: Add support for application .bin files for esp32.
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>
-rwxr-xr-xtools/autobuild/build-boards.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/autobuild/build-boards.sh b/tools/autobuild/build-boards.sh
index aae9981f9..689444a98 100755
--- a/tools/autobuild/build-boards.sh
+++ b/tools/autobuild/build-boards.sh
@@ -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
)
@@ -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 {