Skip to content

Commit f3b67ee

Browse files
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.
1 parent eeabe1b commit f3b67ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build_mpos.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ elif [ "$target" == "unix" -o "$target" == "macOS" ]; then
133133
cat "$codebasedir"/lvgl_micropython/lib/lv_conf.h
134134
fi
135135

136+
# If it's still running, kill it, otherwise "text file busy"
137+
pkill -9 -f /lvgl_micropy_unix
136138
# LV_CFLAGS are passed to USER_C_MODULES (compiler flags only, no linker flags)
137139
# STRIP= makes it so that debug symbols are kept
138140
pushd "$codebasedir"/lvgl_micropython/

0 commit comments

Comments
 (0)