Allow passing different DEB_BUILD_OPTIONS to make debian-deb.
Signed-off-by: Roi Dayan <[email protected]>
---
Notes:
v3
- Remove unneeded export call.
- Move assignment to an existing DPDK_NETDEV check.
v2
- Fix export of DEB_BUILD_OPTIONS in the Makefile
debian/automake.mk | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/debian/automake.mk b/debian/automake.mk
index 7b2afafae1a2..7607a2cd5b3a 100644
--- a/debian/automake.mk
+++ b/debian/automake.mk
@@ -98,10 +98,12 @@ if DPDK_NETDEV
update_deb_control = \
$(AM_V_GEN) sed -e 's/^\# DPDK_NETDEV //' \
< $(srcdir)/debian/control.in > debian/control
+DEB_BUILD_OPTIONS ?= nocheck parallel=`nproc`
else
update_deb_control = \
$(AM_V_GEN) grep -v '^\# DPDK_NETDEV' \
< $(srcdir)/debian/control.in > debian/control
+DEB_BUILD_OPTIONS ?= nocheck parallel=`nproc` nodpdk
endif
debian/control: $(srcdir)/debian/control.in Makefile
@@ -123,10 +125,5 @@ debian-deb: debian
$(update_deb_copyright)
$(update_deb_control)
$(AM_V_GEN) fakeroot debian/rules clean
-if DPDK_NETDEV
- $(AM_V_GEN) DEB_BUILD_OPTIONS="nocheck parallel=`nproc`" \
- fakeroot debian/rules binary
-else
- $(AM_V_GEN) DEB_BUILD_OPTIONS="nocheck parallel=`nproc` nodpdk" \
+ $(AM_V_GEN) DEB_BUILD_OPTIONS="${DEB_BUILD_OPTIONS}" \
fakeroot debian/rules binary
-endif
--
2.46.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev