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

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.

Signed-off-by: David GOUARIN <dgouarin@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
David GOUARIN 2020-10-13 21:49:45 +02:00 committed by Thomas Petazzoni
parent 43ef89e6d4
commit d49f2846b0

View File

@ -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 ?=