Files
MicroPythonOS/scripts/build_all.sh
T

74 lines
2.7 KiB
Bash
Raw Normal View History

2025-10-09 19:14:44 +02:00
builddir=../lvgl_micropython/build
2025-10-14 21:41:59 +02:00
outdir=../build_outputs/
updatesdir=../updates/
2025-10-09 19:14:44 +02:00
buildfile="$builddir"/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin
2025-10-14 21:41:59 +02:00
updatefile=../lvgl_micropython/lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/micropython.bin
2025-10-20 18:07:23 +02:00
version=$(grep CURRENT_OS_VERSION internal_filesystem/lib/mpos/info.py | cut -d "=" -f 2 | tr -d " " | tr -d '"')
overwrite="$1"
if [ "$overwrite" != "--overwrite" ] && ls "$outdir"/*"$version"* 2>/dev/null; then
echo "WARNING: $version already exists, use --overwrite to overwrite it"
exit 1
fi
2025-10-14 21:41:59 +02:00
./scripts/build_lvgl_micropython.sh esp32 prod fri3d-2024
2025-10-20 18:51:13 +02:00
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 prod fri3d-2024 got error: $result"
exit 1
fi
2025-10-20 18:07:23 +02:00
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_prod_"$version".bin
cp "$updatefile" "$updatesdir"/MicroPythonOS_fri3d-2024_prod_"$version".ota
2025-10-09 19:14:44 +02:00
2025-10-10 07:13:02 +02:00
./scripts/build_lvgl_micropython.sh esp32 dev fri3d-2024
2025-10-20 18:51:13 +02:00
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 dev fri3d-2024 got error: $result"
exit 1
fi
2025-10-20 18:07:23 +02:00
cp "$buildfile" "$outdir"/MicroPythonOS_fri3d-2024_dev_"$version".bin
2025-10-09 19:14:44 +02:00
./scripts/build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2
2025-10-20 18:51:13 +02:00
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 prod waveshare-esp32-s3-touch-lcd-2 got error: $result"
exit 1
fi
2025-10-20 18:07:23 +02:00
cp "$buildfile" "$outdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_"$version".bin
cp "$updatefile" "$updatesdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_prod_"$version".ota
2025-10-09 19:14:44 +02:00
./scripts/build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2
2025-10-20 18:51:13 +02:00
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 dev waveshare-esp32-s3-touch-lcd-2 got error: $result"
exit 1
fi
2025-10-20 18:07:23 +02:00
cp "$buildfile" "$outdir"/MicroPythonOS_waveshare-esp32-s3-touch-lcd-2_dev_"$version".bin
2025-10-09 19:14:44 +02:00
2026-02-05 15:02:13 +01:00
./scripts/build_lvgl_micropython.sh esp32 prod matouch-esp32-s3-2-8
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 prod matouch-esp32-s3-2-8 got error: $result"
exit 1
fi
cp "$buildfile" "$outdir"/MicroPythonOS_matouch-esp32-s3-2-8_prod_"$version".bin
cp "$updatefile" "$updatesdir"/MicroPythonOS_matouch-esp32-s3-2-8_prod_"$version".ota
./scripts/build_lvgl_micropython.sh esp32 dev matouch-esp32-s3-2-8
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 dev matouch-esp32-s3-2-8 got error: $result"
exit 1
fi
cp "$buildfile" "$outdir"/MicroPythonOS_matouch-esp32-s3-2-8_dev_"$version".bin
2025-10-14 21:41:59 +02:00
./scripts/build_lvgl_micropython.sh unix dev
2025-10-20 18:07:23 +02:00
cp "$builddir"/lvgl_micropy_unix "$outdir"/MicroPythonOS_amd64_linux_"$version".elf
2025-10-20 18:51:13 +02:00
result=$?
if [ $result -ne 0 ]; then
echo "build_lvgl_micropython.sh esp32 unix dev got error: $result"
exit 1
fi