Skip to contentSkip to conversation

package/pkg-waf.mk: allow for override of <pkg>_WAF directive

Buildroot Thomas Petazzoni 1 participant 1 message Oct 14, 2020

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=d49f2846b0821d10bbafa7e4a71a17e56a1bbf73
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Some packages have their own waf copy, but not located at the top-level directory. In order to support those packages, we allow packages to override the default <pkg>_WAF location.

---
 package/pkg-waf.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/pkg-waf.mk +1 -1
index 35e56d3c13..038d89454e 100644
@@ -46,7 +46,7 @@ ifeq ($$($(2)_NEEDS_EXTERNAL_WAF),YES)
 $(2)_DEPENDENCIES += host-waf
 $(2)_WAF = $$(HOST_DIR)/bin/waf
 else
-$(2)_WAF = ./waf
+$(2)_WAF ?= ./waf
 endif
 
 $(2)_BUILD_OPTS				?=