summaryrefslogtreecommitdiffstats
path: root/package/pkg-waf.mk
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@gmail.com>2016-12-06 20:49:06 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-12-11 15:26:02 +0100
commit693031b39c6a7b40bd560172d51ae9f1c0e2f1d2 (patch)
tree33566e315cfa63d0cf4d0ba50534f935f329918d /package/pkg-waf.mk
parent468f01e5790b476d9de784a8f5f65f52c14338b9 (diff)
downloadbuildroot-693031b39c6a7b40bd560172d51ae9f1c0e2f1d2.tar.gz
buildroot-693031b39c6a7b40bd560172d51ae9f1c0e2f1d2.zip
pkg-waf: add additional variables for each install step
Some waf packages may want to pass additional variables to waf script in install step. Add the possibility to do so by defining the following variables: <pkg>_INSTALL_STAGING_OPTS for the install to staging directory <pkg>_INSTALL_TARGET_OPTS for the install to target directory Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-waf.mk')
-rw-r--r--package/pkg-waf.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/pkg-waf.mk b/package/pkg-waf.mk
index 908ac0354e..a82f45ce49 100644
--- a/package/pkg-waf.mk
+++ b/package/pkg-waf.mk
@@ -49,6 +49,9 @@ else
$(2)_WAF = ./waf
endif
+$(2)_INSTALL_STAGING_OPTS ?=
+$(2)_INSTALL_TARGET_OPTS ?=
+
#
# Configure step. Only define it if not already defined by the package
# .mk file.
@@ -84,7 +87,8 @@ ifndef $(2)_INSTALL_STAGING_CMDS
define $(2)_INSTALL_STAGING_CMDS
cd $$(@D) && \
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
- install --destdir=$$(STAGING_DIR)
+ install --destdir=$$(STAGING_DIR) \
+ $$($(2)_INSTALL_STAGING_OPTS)
endef
endif
@@ -96,7 +100,8 @@ ifndef $(2)_INSTALL_TARGET_CMDS
define $(2)_INSTALL_TARGET_CMDS
cd $$(@D) && \
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
- install --destdir=$$(TARGET_DIR)
+ install --destdir=$$(TARGET_DIR) \
+ $$($(2)_INSTALL_TARGET_OPTS)
endef
endif
OpenPOWER on IntegriCloud