From 7df4dd2aa0e98be481e9210a637a6671a60eca56 Mon Sep 17 00:00:00 2001 From: Roi Dayan Date: Mon, 30 Sep 2024 17:49:36 +0300 Subject: [PATCH] debian: Allow passing DEB_BUILD_OPTIONS. Allow passing different DEB_BUILD_OPTIONS to make debian-deb. Acked-by: Simon Horman Signed-off-by: Roi Dayan Signed-off-by: Eelco Chaudron --- debian/automake.mk | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/debian/automake.mk b/debian/automake.mk index 7b2afafae1a..5fcefea910c 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