mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 14:32:33 +00:00
kata-deploy: Make verbose single builds
If a binary tarball for a single component is done, the logs will be shown in stdout. e.g. make kernel-tarball To build all a the same time still store logs in files. make kata-tarball Signed-off-by: Carlos Venegas <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
parent
59486b855a
commit
78d99f5129
@ -7,21 +7,16 @@ MK_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
|||||||
MK_DIR := $(dir $(MK_PATH))
|
MK_DIR := $(dir $(MK_PATH))
|
||||||
|
|
||||||
# Verbose build
|
# Verbose build
|
||||||
V ?=
|
V := 1
|
||||||
ifneq ($(V),)
|
|
||||||
SILENT_BUILD_FLAG =
|
|
||||||
else
|
|
||||||
SILENT_BUILD_FLAG = -s
|
|
||||||
endif
|
|
||||||
|
|
||||||
define BUILD
|
define BUILD
|
||||||
$(MK_DIR)/kata-deploy-binaries-in-docker.sh $(SILENT_BUILD_FLAG) --build=$1
|
$(MK_DIR)/kata-deploy-binaries-in-docker.sh $(if $(V),,-s) --build=$1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
kata-tarball: | all-parallel merge-builds
|
kata-tarball: | all-parallel merge-builds
|
||||||
|
|
||||||
all-parallel:
|
all-parallel:
|
||||||
${MAKE} -f $(MK_PATH) all -j$$(( $$(nproc) - 1 )) NO_TTY="true"
|
${MAKE} -f $(MK_PATH) all -j$$(( $$(nproc) - 1 )) NO_TTY="true" V=
|
||||||
|
|
||||||
all: cloud-hypervisor-tarball \
|
all: cloud-hypervisor-tarball \
|
||||||
firecracker-tarball \
|
firecracker-tarball \
|
||||||
|
Loading…
Reference in New Issue
Block a user