mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 12:30:34 -09:00
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>
(cherry picked from commit 95ea6664cd)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
bb0546155a
commit
4935903026
@@ -75,7 +75,7 @@ endif
|
||||
ifndef $(2)_BUILD_CMDS
|
||||
define $(2)_BUILD_CMDS
|
||||
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) \
|
||||
$$($(2)_WAF_OPTS)
|
||||
endef
|
||||
@@ -88,7 +88,7 @@ endif
|
||||
ifndef $(2)_INSTALL_STAGING_CMDS
|
||||
define $(2)_INSTALL_STAGING_CMDS
|
||||
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) \
|
||||
$$($(2)_INSTALL_STAGING_OPTS) \
|
||||
$$($(2)_WAF_OPTS)
|
||||
@@ -102,7 +102,7 @@ endif
|
||||
ifndef $(2)_INSTALL_TARGET_CMDS
|
||||
define $(2)_INSTALL_TARGET_CMDS
|
||||
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) \
|
||||
$$($(2)_INSTALL_TARGET_OPTS) \
|
||||
$$($(2)_WAF_OPTS)
|
||||
|
||||
Reference in New Issue
Block a user