mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
debian: Allow passing DEB_BUILD_OPTIONS.
Allow passing different DEB_BUILD_OPTIONS to make debian-deb. Acked-by: Simon Horman <horms@ovn.org> Signed-off-by: Roi Dayan <roid@nvidia.com> Signed-off-by: Eelco Chaudron <echaudro@redhat.com>
This commit is contained in:
parent
84ea72fcc7
commit
7df4dd2aa0
9
debian/automake.mk
vendored
9
debian/automake.mk
vendored
@ -98,10 +98,12 @@ if DPDK_NETDEV
|
|||||||
update_deb_control = \
|
update_deb_control = \
|
||||||
$(AM_V_GEN) sed -e 's/^\# DPDK_NETDEV //' \
|
$(AM_V_GEN) sed -e 's/^\# DPDK_NETDEV //' \
|
||||||
< $(srcdir)/debian/control.in > debian/control
|
< $(srcdir)/debian/control.in > debian/control
|
||||||
|
DEB_BUILD_OPTIONS ?= nocheck parallel=`nproc`
|
||||||
else
|
else
|
||||||
update_deb_control = \
|
update_deb_control = \
|
||||||
$(AM_V_GEN) grep -v '^\# DPDK_NETDEV' \
|
$(AM_V_GEN) grep -v '^\# DPDK_NETDEV' \
|
||||||
< $(srcdir)/debian/control.in > debian/control
|
< $(srcdir)/debian/control.in > debian/control
|
||||||
|
DEB_BUILD_OPTIONS ?= nocheck parallel=`nproc` nodpdk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
debian/control: $(srcdir)/debian/control.in Makefile
|
debian/control: $(srcdir)/debian/control.in Makefile
|
||||||
@ -123,10 +125,5 @@ debian-deb: debian
|
|||||||
$(update_deb_copyright)
|
$(update_deb_copyright)
|
||||||
$(update_deb_control)
|
$(update_deb_control)
|
||||||
$(AM_V_GEN) fakeroot debian/rules clean
|
$(AM_V_GEN) fakeroot debian/rules clean
|
||||||
if DPDK_NETDEV
|
$(AM_V_GEN) DEB_BUILD_OPTIONS="$(DEB_BUILD_OPTIONS)" \
|
||||||
$(AM_V_GEN) DEB_BUILD_OPTIONS="nocheck parallel=`nproc`" \
|
|
||||||
fakeroot debian/rules binary
|
fakeroot debian/rules binary
|
||||||
else
|
|
||||||
$(AM_V_GEN) DEB_BUILD_OPTIONS="nocheck parallel=`nproc` nodpdk" \
|
|
||||||
fakeroot debian/rules binary
|
|
||||||
endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user