Skip to content

Commit 9bbbf6d

Browse files
Improve workaround for lvgl_micropython manifest
1 parent 3c5e7e9 commit 9bbbf6d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/build_mpos.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ fi
4444

4545
echo "Check need to add lvgl_micropython manifest to micropython-camera-API's manifest..."
4646
camani="$codebasedir"/micropython-camera-API/src/manifest.py
47-
lvglmani="$codebasedir"/lvgl_micropython/build/manifest.py
48-
if ! grep "lvgl_micropython/build/manifest.py" "$idfile"; then
49-
echo "Adding include(\"$lvglmani\") to $camani"
50-
echo "include(\"$lvglmani\") # workaround to prevent micropython-camera-API from overriding the lvgl_micropython manifest..." >> "$camani"
47+
rellvglmani=lvgl_micropython/build/manifest.py
48+
if ! grep "$rellvglmani" "$idfile"; then
49+
abslvglmani="$codebasedir"/"$rellvglmani"
50+
echo "Adding include(\"$abslvglmani\") to $camani"
51+
echo "include(\"$abslvglmani\") # workaround to prevent micropython-camera-API from overriding the lvgl_micropython manifest..." >> "$camani"
5152
else
52-
echo "No need to add include(\"$lvglmani\") to $camani"
53+
echo "No need to add include(\"$abslvglmani\") to $camani"
5354
fi
5455

5556
echo "Check need to add asyncio..."

0 commit comments

Comments
 (0)