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: <name>, 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 <zkaiser@nvidia.com>
Assisted-By: Claude <noreply@anthropic.com>
This commit is contained in:
Zvonko Kaiser
2026-05-07 19:15:47 +00:00
committed by Fabiano Fidêncio
parent 3be370d2d6
commit 5aa6229eba

View File

@@ -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}