From 5aa6229ebac44d32c3273e49feab5d20ae99a7b2 Mon Sep 17 00:00:00 2001 From: Zvonko Kaiser Date: Thu, 7 May 2026 19:15:47 +0000 Subject: [PATCH] build: group parallel build output by target With `make all -j N` running multiple tarballs concurrently and silent mode redirecting each build's stdio to its per-target log, a failing target's "Failed to build: , logs:" banner gets interleaved with other in-flight jobs' output, making it hard to tell which target failed. Pass `--output-sync=target` to the recursive make so each sub-make's output is buffered and emitted as one block when the target finishes, keeping the failure banner contiguous with its log dump. Signed-off-by: Zvonko Kaiser Assisted-By: Claude --- tools/packaging/kata-deploy/local-build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/kata-deploy/local-build/Makefile b/tools/packaging/kata-deploy/local-build/Makefile index fd6352efb6..3b90a34697 100644 --- a/tools/packaging/kata-deploy/local-build/Makefile +++ b/tools/packaging/kata-deploy/local-build/Makefile @@ -146,7 +146,7 @@ copy-scripts-for-the-tools-build: ${MK_DIR}/kata-deploy-copy-libseccomp-installer.sh "tools" all-parallel: - ${MAKE} -f $(MK_PATH) all -j $(shell nproc) V= + ${MAKE} -f $(MK_PATH) all -j $(shell nproc) --output-sync=target V= ${MAKE} -f $(MK_PATH) shim-v2-go-tarball shim-v2-rust-tarball V= all: ${BASE_TARBALLS}