Skip to content

Commit cb7d9d4

Browse files
committed
skip upx compression in mips
1 parent 6ef2eb9 commit cb7d9d4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

beszel-agent/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ endef
3333

3434
define Build/Compile
3535
if command -v upx >/dev/null 2>&1; then \
36-
upx --best --lzma $(PKG_BUILD_DIR)/beszel-agent || true; \
36+
if [ "$(BESZEL_GOARCH)" = "mips" ] || [ "$(BESZEL_GOARCH)" = "mipsle" ]; then \
37+
echo "Skipping UPX compression for MIPS architectures (prevents execution hang)..."; \
38+
else \
39+
upx --best --lzma $(PKG_BUILD_DIR)/beszel-agent || true; \
40+
fi; \
3741
fi
3842
endef
3943

0 commit comments

Comments
 (0)