package/pkg-waf.mk: enable definiton of env. variables in every build steps
It might be necessary for some packages to define environment variables when calling waf build and waf install. This is done the same way as the others package types, by defining $(PKG)_MAKE_ENV in .mk. Signed-off-by: David GOUARIN <david.gouarin@thalesgroup.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
ed97f60c3a
commit
95ea6664cd
@ -75,7 +75,7 @@ endif
|
|||||||
ifndef $(2)_BUILD_CMDS
|
ifndef $(2)_BUILD_CMDS
|
||||||
define $(2)_BUILD_CMDS
|
define $(2)_BUILD_CMDS
|
||||||
cd $$($$(PKG)_SRCDIR) && \
|
cd $$($$(PKG)_SRCDIR) && \
|
||||||
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
|
$$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
|
||||||
build $$(WAF_OPTS) $$($(2)_BUILD_OPTS) \
|
build $$(WAF_OPTS) $$($(2)_BUILD_OPTS) \
|
||||||
$$($(2)_WAF_OPTS)
|
$$($(2)_WAF_OPTS)
|
||||||
endef
|
endef
|
||||||
@ -88,7 +88,7 @@ endif
|
|||||||
ifndef $(2)_INSTALL_STAGING_CMDS
|
ifndef $(2)_INSTALL_STAGING_CMDS
|
||||||
define $(2)_INSTALL_STAGING_CMDS
|
define $(2)_INSTALL_STAGING_CMDS
|
||||||
cd $$($$(PKG)_SRCDIR) && \
|
cd $$($$(PKG)_SRCDIR) && \
|
||||||
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
|
$$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
|
||||||
install --destdir=$$(STAGING_DIR) \
|
install --destdir=$$(STAGING_DIR) \
|
||||||
$$($(2)_INSTALL_STAGING_OPTS) \
|
$$($(2)_INSTALL_STAGING_OPTS) \
|
||||||
$$($(2)_WAF_OPTS)
|
$$($(2)_WAF_OPTS)
|
||||||
@ -102,7 +102,7 @@ endif
|
|||||||
ifndef $(2)_INSTALL_TARGET_CMDS
|
ifndef $(2)_INSTALL_TARGET_CMDS
|
||||||
define $(2)_INSTALL_TARGET_CMDS
|
define $(2)_INSTALL_TARGET_CMDS
|
||||||
cd $$($$(PKG)_SRCDIR) && \
|
cd $$($$(PKG)_SRCDIR) && \
|
||||||
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
|
$$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$(HOST_DIR)/bin/python3 $$($(2)_WAF) \
|
||||||
install --destdir=$$(TARGET_DIR) \
|
install --destdir=$$(TARGET_DIR) \
|
||||||
$$($(2)_INSTALL_TARGET_OPTS) \
|
$$($(2)_INSTALL_TARGET_OPTS) \
|
||||||
$$($(2)_WAF_OPTS)
|
$$($(2)_WAF_OPTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user