From e6ae2d272ba5cf2091dfea2ceb1ecb9a491ab09e Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Tue, 15 Jan 2019 01:40:17 -0700 Subject: [PATCH] build: quiet the ipsec build Redirect stdout to /dev/null unless user specifies Q= on make command line. Note that stderr is not redirected so if something fails for some reason, user will still see the error messages. Same for make clean - redirect to /dev/null unless user specifies Q=. Signed-off-by: Jim Harris Change-Id: I9c7cf5a4b5d99655d4d25a9a3afa2cbe82faa05d Reviewed-on: https://review.gerrithub.io/c/441797 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto --- ipsecbuild/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ipsecbuild/Makefile b/ipsecbuild/Makefile index c9bb9308a..e2f6d08ca 100644 --- a/ipsecbuild/Makefile +++ b/ipsecbuild/Makefile @@ -36,10 +36,14 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk .PHONY: all clean install +ifneq ($(Q),) +REDIRECT=> /dev/null +endif + all: - $(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/intel-ipsec-mb -j$(NPROC) all SHARED=n EXTRA_CFLAGS=-fPIC + $(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/intel-ipsec-mb -j$(NPROC) all SHARED=n EXTRA_CFLAGS=-fPIC $(REDIRECT) install: all clean: - $(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/intel-ipsec-mb clean SHARED=n + $(Q)$(MAKE) -C $(SPDK_ROOT_DIR)/intel-ipsec-mb clean SHARED=n $(REDIRECT)