Skip to content

Commit c7546eb

Browse files
Improve build_all script
1 parent 3c28289 commit c7546eb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

scripts/build_all.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,43 @@ if [ "$overwrite" != "--overwrite" ] && ls "$outdir"/*"$version"* 2>/dev/null; t
1414
fi
1515

1616
./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024
17+
result=$?
18+
if [ $result -ne 0 ]; then
19+
echo "build_lvgl_micropython.sh esp32 prod fri3d-2024 got error: $result"
20+
exit 1
21+
fi
1722
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_prod_"$version".bin
1823
cp "$updatefile" "$updatesdir"/MicroPythonOS_fri3d-2024_prod_"$version".ota
1924

2025
./scripts/build_lvgl_micropython.sh esp32 dev fri3d-2024
26+
result=$?
27+
if [ $result -ne 0 ]; then
28+
echo "build_lvgl_micropython.sh esp32 dev fri3d-2024 got error: $result"
29+
exit 1
30+
fi
2131
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_dev_"$version".bin
2232

2333
./scripts/build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2
34+
result=$?
35+
if [ $result -ne 0 ]; then
36+
echo "build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2 got error: $result"
37+
exit 1
38+
fi
2439
cp "$buildfile" "$outdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_"$version".bin
2540
cp "$updatefile" "$updatesdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_"$version".ota
2641

2742
./scripts/build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2
43+
result=$?
44+
if [ $result -ne 0 ]; then
45+
echo "build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2 got error: $result"
46+
exit 1
47+
fi
2848
cp "$buildfile" "$outdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_dev_"$version".bin
2949

3050
./scripts/build_lvgl_micropython.sh unix dev
3151
cp "$builddir"/lvgl_micropy_unix "$outdir"/MicroPythonOS_amd64_linux_"$version".elf
52+
result=$?
53+
if [ $result -ne 0 ]; then
54+
echo "build_lvgl_micropython.sh esp32 unix dev got error: $result"
55+
exit 1
56+
fi

0 commit comments

Comments
 (0)