[v3,5/8] build: make efd library optional

Message ID 20230623111508.786020-6-bruce.richardson@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series expand list of optional libraries |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson June 23, 2023, 11:15 a.m. UTC
  This library is not essential for most DPDK uses, so mark it as optional
in the build config.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
 app/test/meson.build | 8 ++++----
 lib/meson.build      | 1 +
 2 files changed, 5 insertions(+), 4 deletions(-)
  

Patch

diff --git a/app/test/meson.build b/app/test/meson.build
index 4e86e886a5..492dd719de 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -42,8 +42,6 @@  test_sources = files(
         'test_distributor_perf.c',
         'test_eal_flags.c',
         'test_eal_fs.c',
-        'test_efd.c',
-        'test_efd_perf.c',
         'test_errno.c',
         'test_ethdev_link.c',
         'test_external_mem.c',
@@ -257,9 +255,7 @@  perf_test_names = [
         'barrier_autotest',
         'hash_multiwriter_autotest',
         'timer_racecond_autotest',
-        'efd_autotest',
         'hash_functions_autotest',
-        'efd_perf_autotest',
         'lpm6_perf_autotest',
         'rib6_slow_autotest',
         'fib6_slow_autotest',
@@ -368,6 +364,10 @@  if dpdk_conf.has('RTE_LIB_FLOW_CLASSIFY')
     test_sources += 'test_flow_classify.c'
     fast_tests += [['flow_classify_autotest', false, true]]
 endif
+if dpdk_conf.has('RTE_LIB_EFD')
+    test_sources += ['test_efd.c', 'test_efd_perf.c']
+    perf_test_names += ['efd_autotest', 'efd_perf_autotest']
+endif
 if dpdk_conf.has('RTE_LIB_GRAPH')
     test_sources += 'test_graph.c'
     fast_tests += [['graph_autotest', true, true]]
diff --git a/lib/meson.build b/lib/meson.build
index 47c18ca3b0..07cfdef614 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -74,6 +74,7 @@  optional_libs = [
         'cfgfile',
         'compressdev',
         'dmadev',
+        'efd',
         'eventdev',
         'flow_classify',
         'gpudev',