[PATCH v4 2/9] event/dlb2: skip configuration if no eventdev lib

Bruce Richardson bruce.richardson at intel.com
Fri Jun 23 17:07:01 CEST 2023


While the build system will skip building most libs and drivers when a
dependency is missing for a component, for DLB2 driver, the
"static_rte_eventdev" object is referenced inside the meson.build file
itself, which will cause crashes if it doesn't exist i.e. if eventdev is
disabled. Prevent this issue by skipping processing the file if no
eventdev. [The build system will still report missing dependency, as the
dependency is set by default for all eventdev drivers]

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/event/dlb2/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/event/dlb2/meson.build b/drivers/event/dlb2/meson.build
index 515d1795fe..8cede61593 100644
--- a/drivers/event/dlb2/meson.build
+++ b/drivers/event/dlb2/meson.build
@@ -7,7 +7,7 @@ if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')
         subdir_done()
 endif
 
-if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0
+if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 or not dpdk_conf.has('RTE_LIB_EVENTDEV')
     subdir_done()
 endif
 
-- 
2.39.2



More information about the dev mailing list