From 611d6e1a882f478b84a53b4dcb10a3a2c6741517 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Tue, 6 Dec 2016 20:49:07 +0100 Subject: [PATCH] pkg-waf: add additional variables for build step Some waf packages may want to pass additional variables to waf script in build step. Add the possibility to do so by defining _BUILD_OPTS. Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- 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 a82f45ce49..f9d435e879 100644 --- a/package/pkg-waf.mk +++ b/package/pkg-waf.mk @@ -49,6 +49,7 @@ else $(2)_WAF = ./waf endif +$(2)_BUILD_OPTS ?= $(2)_INSTALL_STAGING_OPTS ?= $(2)_INSTALL_TARGET_OPTS ?= @@ -75,7 +76,8 @@ endif ifndef $(2)_BUILD_CMDS define $(2)_BUILD_CMDS cd $$(@D) && \ - $$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) build -j $$(PARALLEL_JOBS) + $$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \ + build -j $$(PARALLEL_JOBS) $$($(2)_BUILD_OPTS) endef endif -- 2.30.2