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
devbuild = " $1 "
echo " Usage: $0 [devbuild] "
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-07 10:24:33 +02:00
if [ " $devbuild " = = "devbuild" ] ; then
manifest = ""
fi
2025-05-02 00:17:05 +02:00
2025-05-07 10:24:33 +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 "
2025-05-04 21:51:54 +02:00
2025-05-02 00:17:05 +02:00
popd