[PATCH v2 4/7] build: make efd library optional
Bruce Richardson
bruce.richardson at intel.com
Thu Jun 22 17:05:19 CEST 2023
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 at intel.com>
Acked-by: Morten Brørup <mb at smartsharesystems.com>
---
app/test/meson.build | 8 ++++----
lib/meson.build | 1 +
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/app/test/meson.build b/app/test/meson.build
index d8ad8b1d97..ab5bd370bf 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',
@@ -259,9 +257,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',
@@ -370,6 +366,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_METRICS')
test_sources += ['test_metrics.c']
fast_tests += [['metrics_autotest', true, true]]
diff --git a/lib/meson.build b/lib/meson.build
index 105f167d45..7de3b0d32c 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -74,6 +74,7 @@ optional_libs = [
'cfgfile',
'compressdev',
'dmadev',
+ 'efd',
'eventdev',
'flow_classify',
'gpudev',
--
2.39.2
More information about the dev
mailing list