build_mpos.sh: fix "text file busy" error

If the build process tries to output the final binary
while it's already running and therefore in use, it failed.
This commit is contained in:
Thomas Farstrike
2026-01-09 15:08:26 +01:00
parent eeabe1b20b
commit f3b67eef73
+2
View File
@@ -133,6 +133,8 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
cat "$codebasedir"/lvgl_micropython/lib/lv_conf.h
fi
# If it's still running, kill it, otherwise "text file busy"
pkill -9 -f /lvgl_micropy_unix
# LV_CFLAGS are passed to USER_C_MODULES (compiler flags only, no linker flags)
# STRIP= makes it so that debug symbols are kept
pushd "$codebasedir"/lvgl_micropython/