Skip to content

Commit a1ab4a1

Browse files
Add missing newline to camera manifest
1 parent 9bbbf6d commit a1ab4a1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/build_mpos.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ if ! grep esp32-camera "$idfile"; then
3838
echo "Adding esp32-camera to $idfile"
3939
echo " espressif/esp32-camera:
4040
git: https://github.com/MicroPythonOS/esp32-camera" >> "$idfile"
41+
echo "Resulting file:"
42+
cat "$idfile"
4143
else
4244
echo "No need to add esp32-camera to $idfile"
4345
fi
@@ -48,7 +50,10 @@ rellvglmani=lvgl_micropython/build/manifest.py
4850
if ! grep "$rellvglmani" "$idfile"; then
4951
abslvglmani="$codebasedir"/"$rellvglmani"
5052
echo "Adding include(\"$abslvglmani\") to $camani"
53+
echo >> "$camani" # needs newline because file doesn't have newline at the end
5154
echo "include(\"$abslvglmani\") # workaround to prevent micropython-camera-API from overriding the lvgl_micropython manifest..." >> "$camani"
55+
echo "Resulting file:"
56+
cat "$camani"
5257
else
5358
echo "No need to add include(\"$abslvglmani\") to $camani"
5459
fi
@@ -58,6 +63,8 @@ manifile="$codebasedir"/lvgl_micropython/lib/micropython/ports/unix/variants/man
5863
if ! grep asyncio "$manifile"; then
5964
echo "Adding asyncio to $manifile"
6065
echo 'include("$(MPY_DIR)/extmod/asyncio") # needed to have asyncio, which is used by aiohttp, which has used by websockets' >> "$manifile"
66+
echo "Resulting file:"
67+
cat "$manifile"
6168
else
6269
echo "No need to add asyncio to $manifile"
6370
fi
@@ -68,7 +75,6 @@ ln -sf ../../secp256k1-embedded-ecdh "$codebasedir"/lvgl_micropython/ext_mod/sec
6875
echo "Symlinking c_mpos for unix and macOS builds..."
6976
ln -sf ../../c_mpos "$codebasedir"/lvgl_micropython/ext_mod/c_mpos
7077

71-
7278
if [ "$buildtype" == "prod" ]; then
7379
freezefs="$codebasedir"/scripts/freezefs_mount_builtin.sh
7480
echo "It's a $buildtype build, running $freezefs"

0 commit comments

Comments
 (0)