瀏覽代碼

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 <ps.report@gmx.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Peter Seiderer 3 年之前
父節點
當前提交
f0db062f4b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      package/pkg-waf.mk

+ 3 - 1
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
 # inner-waf-package -- defines how the configuration, compilation and
 # installation of a waf package should be done, implements a few hooks
 # installation of a waf package should be done, implements a few hooks
@@ -74,7 +76,7 @@ ifndef $(2)_BUILD_CMDS
 define $(2)_BUILD_CMDS
 define $(2)_BUILD_CMDS
 	cd $$($$(PKG)_SRCDIR) && \
 	cd $$($$(PKG)_SRCDIR) && \
 	$$(TARGET_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
 	$$(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)
 		$$($(2)_WAF_OPTS)
 endef
 endef
 endif
 endif