2025-04-30 13:50:04 +02:00
# Build for https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-2:
# --ota: support Over-The-Air updates
# --partition size: both OTA partitions are 4MB
# --flash-size: total flash size is 16MB
#
2025-05-07 10:24:33 +02:00
2025-05-10 17:44:31 +02:00
buildtype = " $1 "
2025-05-07 10:24:33 +02:00
2025-05-10 17:44:31 +02:00
echo " Usage: $0 [devbuild/unix] "
2025-05-07 10:24:33 +02:00
echo " Example: $0 "
echo " Example: $0 devbuild "
echo
echo "Adding 'devbuild' will build without any preinstalled files or builtin/ filsystem, so it will just start with a black screen and you'll have to do: ./scripts/install.sh to install the User Interface."
sleep 2
2025-05-02 00:17:05 +02:00
pushd ~/sources/lvgl_micropython
2025-05-08 12:34:52 +02:00
manifest = "FROZEN_MANIFEST=/home/user/sources/PiggyOS/manifest.py"
2025-05-10 17:44:31 +02:00
if [ " $buildtype " = = "devbuild" ] ; then
2025-05-07 10:24:33 +02:00
manifest = ""
fi
2025-05-02 00:17:05 +02:00
2025-05-13 15:52:14 +02:00
if [ " $buildtype " != "unix" -a " $buildtype " != "macOS" ] ; then
2025-05-10 17:44:31 +02:00
python3 make.py --ota --partition-size= 4194304 --flash-size= 16 esp32 BOARD = ESP32_GENERIC_S3 BOARD_VARIANT = SPIRAM_OCT DISPLAY = st7789 INDEV = cst816s USER_C_MODULE = "/home/user/sources/micropython-camera-API/src/micropython.cmake" " $manifest "
else
# build for desktop
python3 make.py " $buildtype " DISPLAY = sdl_display INDEV = sdl_pointer
fi
2025-05-09 17:49:16 +02:00
2025-05-02 00:17:05 +02:00
popd