From d14ddcbdb5f373bf73df8e7ff9e3b1a60d7d5e25 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 25 Jul 2023 00:15:15 +1000 Subject: [PATCH] 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 --- tools/autobuild/build-boards.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/autobuild/build-boards.sh b/tools/autobuild/build-boards.sh index aae9981f94..689444a988 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 {