Skip to content

Commit 61673db

Browse files
Add rlottie
1 parent de629c3 commit 61673db

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

scripts/build_mpos.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ git fetch --unshallow origin 2>/dev/null # will give error if already done
2828
git fetch origin 'refs/tags/*:refs/tags/*'
2929
popd
3030

31-
echo "Check need to add esp32-camera..."
3231
idfile="$codebasedir"/lvgl_micropython/lib/micropython/ports/esp32/main/idf_component.yml
32+
echo "Patching $idfile"...
33+
34+
echo "Check need to add esp32-camera..."
3335
if ! grep esp32-camera "$idfile"; then
3436
echo "Adding esp32-camera to $idfile"
3537
echo " espressif/esp32-camera:
@@ -40,6 +42,17 @@ else
4042
echo "No need to add esp32-camera to $idfile"
4143
fi
4244

45+
echo "Check need to add esp_rlottie"
46+
if ! grep esp32-camera "$idfile"; then
47+
echo "Adding esp_rlottie to $idfile"
48+
echo " esp_rlottie:
49+
git: https://github.com/MicroPythonOS/esp_rlottie" >> "$idfile"
50+
echo "Resulting file:"
51+
cat "$idfile"
52+
else
53+
echo "No need to add esp_rlottie to $idfile"
54+
fi
55+
4356
echo "Check need to add lvgl_micropython manifest to micropython-camera-API's manifest..."
4457
camani="$codebasedir"/micropython-camera-API/src/manifest.py
4558
rellvglmani=lvgl_micropython/build/manifest.py
@@ -96,6 +109,7 @@ if [ "$target" == "esp32" ]; then
96109
# CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
97110
# CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
98111
pushd "$codebasedir"/lvgl_micropython/
112+
rm -rf lib/micropython/ports/esp32/build-ESP32_GENERIC_S3-SPIRAM_OCT/
99113
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="$codebasedir"/micropython-camera-API/src/micropython.cmake USER_C_MODULE="$codebasedir"/secp256k1-embedded-ecdh/micropython.cmake USER_C_MODULE="$codebasedir"/c_mpos/micropython.cmake CONFIG_FREERTOS_USE_TRACE_FACILITY=y CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y "$frozenmanifest"
100114
popd
101115
elif [ "$target" == "unix" -o "$target" == "macOS" ]; then

0 commit comments

Comments
 (0)