Skip to contentSkip to conversation

package/pkg-waf.mk: enable verbose compile

PATCH Applied Peter Seiderer 2 participants 2 messages Jan 3, 2022 – Jan 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/pkg-waf.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/pkg-waf.mk +3 -1
index a593476a69..0239862ac6 100644
@@ -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
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Peter, All,

On 2022-01-03 22:56 +0100, Peter Seiderer spake thusly:

Quoted 13 lines

Honour the buildroot verbose flag ('V=1') for the waf compile step by adding '-v' to the build command.

---
 package/pkg-waf.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/pkg-waf.mk +0 -0
index a593476a69..0239862ac6 100644

package/pkg-waf.mk line 23

Quoted 4 lines
package/pkg-waf.mk +1 -0
@@ -20,6 +20,8 @@
 #
 ################################################################################
 
+WAF_OPTS	= $(if $(VERBOSE),-v) -j $(PARALLEL_JOBS)

s/\t=/ =/

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 19 lines
package/pkg-waf.mk +1 -1
 ################################################################################
 # 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
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot