From f0db062f4b6a7e249602e540204e7e428fc5ff2e Mon Sep 17 00:00:00 2001 From: Peter Seiderer Date: Mon, 3 Jan 2022 22:56:19 +0100 Subject: [PATCH] package/pkg-waf.mk: enable verbose compile Honour the buildroot verbose flag ('V=1') for the waf compile step by adding '-v' to the build command. Signed-off-by: Peter Seiderer Signed-off-by: Yann E. MORIN --- package/pkg-waf.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/pkg-waf.mk b/package/pkg-waf.mk index a593476a69..d546b4a817 100644 --- a/package/pkg-waf.mk +++ b/package/pkg-waf.mk @@ -20,6 +20,8 @@ # ################################################################################ +WAF_OPTS = $(if $(VERBOSE),-v) -j $(PARALLEL_JOBS) + ################################################################################ # inner-waf-package -- defines how the configuration, compilation and # installation of a waf package should be done, implements a few hooks @@ -74,7 +76,7 @@ ifndef $(2)_BUILD_CMDS define $(2)_BUILD_CMDS cd $$($$(PKG)_SRCDIR) && \ $$(TARGET_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \ - build -j $$(PARALLEL_JOBS) $$($(2)_BUILD_OPTS) \ + build $$(WAF_OPTS) $$($(2)_BUILD_OPTS) \ $$($(2)_WAF_OPTS) endef endif