Skip to content

Commit

Permalink
debian: Allow passing DEB_BUILD_OPTIONS.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
roidayan authored and chaudron committed Oct 4, 2024
1 parent 84ea72f commit 7df4dd2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions debian/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7df4dd2

Please sign in to comment.