mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
pkg-waf: add a common variable for each step
Some waf packages may want to pass additional variables to waf script for each build step. Add the possibility to do so by defining <pkg>_WAF_OPTS. Signed-off-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
611d6e1a88
commit
2618115c20
@ -52,6 +52,7 @@ endif
|
|||||||
$(2)_BUILD_OPTS ?=
|
$(2)_BUILD_OPTS ?=
|
||||||
$(2)_INSTALL_STAGING_OPTS ?=
|
$(2)_INSTALL_STAGING_OPTS ?=
|
||||||
$(2)_INSTALL_TARGET_OPTS ?=
|
$(2)_INSTALL_TARGET_OPTS ?=
|
||||||
|
$(2)_WAF_OPTS ?=
|
||||||
|
|
||||||
#
|
#
|
||||||
# Configure step. Only define it if not already defined by the package
|
# Configure step. Only define it if not already defined by the package
|
||||||
@ -65,7 +66,8 @@ define $(2)_CONFIGURE_CMDS
|
|||||||
$$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) configure \
|
$$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
$$($(2)_CONF_OPTS)
|
$$($(2)_CONF_OPTS) \
|
||||||
|
$$($(2)_WAF_OPTS)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -77,7 +79,8 @@ ifndef $(2)_BUILD_CMDS
|
|||||||
define $(2)_BUILD_CMDS
|
define $(2)_BUILD_CMDS
|
||||||
cd $$(@D) && \
|
cd $$(@D) && \
|
||||||
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
|
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
|
||||||
build -j $$(PARALLEL_JOBS) $$($(2)_BUILD_OPTS)
|
build -j $$(PARALLEL_JOBS) $$($(2)_BUILD_OPTS) \
|
||||||
|
$$($(2)_WAF_OPTS)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -90,7 +93,8 @@ define $(2)_INSTALL_STAGING_CMDS
|
|||||||
cd $$(@D) && \
|
cd $$(@D) && \
|
||||||
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
|
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
|
||||||
install --destdir=$$(STAGING_DIR) \
|
install --destdir=$$(STAGING_DIR) \
|
||||||
$$($(2)_INSTALL_STAGING_OPTS)
|
$$($(2)_INSTALL_STAGING_OPTS) \
|
||||||
|
$$($(2)_WAF_OPTS)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -103,7 +107,8 @@ define $(2)_INSTALL_TARGET_CMDS
|
|||||||
cd $$(@D) && \
|
cd $$(@D) && \
|
||||||
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
|
$$(TARGET_MAKE_ENV) $$(HOST_DIR)/usr/bin/python2 $$($(2)_WAF) \
|
||||||
install --destdir=$$(TARGET_DIR) \
|
install --destdir=$$(TARGET_DIR) \
|
||||||
$$($(2)_INSTALL_TARGET_OPTS)
|
$$($(2)_INSTALL_TARGET_OPTS) \
|
||||||
|
$$($(2)_WAF_OPTS)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user