From f3b67eef736ce14e79d9e7667b3402e198eff7ef Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 9 Jan 2026 15:08:26 +0100 Subject: [PATCH] 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. --- scripts/build_mpos.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_mpos.sh b/scripts/build_mpos.sh index 506089f3..fa723b42 100755 --- a/scripts/build_mpos.sh +++ b/scripts/build_mpos.sh @@ -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/