[v3,8/8] build: make reorder library optional

Message ID 20230623111508.786020-9-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
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/intel-Testing success Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/intel-Functional success Functional PASS
ci/github-robot: build fail github build: failed
ci/iol-aarch-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS

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 | 6 ++++--
 lib/meson.build      | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
  

Patch

diff --git a/app/test/meson.build b/app/test/meson.build
index 51267d969b..cd8bcee4a4 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -94,7 +94,6 @@  test_sources = files(
         'test_reciprocal_division_perf.c',
         'test_red.c',
         'test_pie.c',
-        'test_reorder.c',
         'test_rib.c',
         'test_rib6.c',
         'test_ring.c',
@@ -219,7 +218,6 @@  fast_tests = [
         ['power_autotest', true, true],
         ['power_kvm_vm_autotest', false, true],
         ['power_intel_uncore_autotest', true, true],
-        ['reorder_autotest', true, true],
         ['service_autotest', true, true],
         ['thash_autotest', true, true],
         ['threads_autotest', true, true],
@@ -387,6 +385,10 @@  if dpdk_conf.has('RTE_LIB_MEMBER')
     fast_tests += [['member_autotest', true, true]]
     perf_test_names += 'member_perf_autotest'
 endif
+if dpdk_conf.has('RTE_LIB_REORDER')
+    test_sources += 'test_reorder.c'
+    fast_tests += [['reorder_autotest', true, true]]
+endif
 if not is_windows and dpdk_conf.has('RTE_LIB_TELEMETRY')
     test_sources += ['test_telemetry_json.c', 'test_telemetry_data.c']
     fast_tests += [['telemetry_json_autotest', true, true]]
diff --git a/lib/meson.build b/lib/meson.build
index ea351b236a..b46f4e51ff 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -96,6 +96,7 @@  optional_libs = [
         'power',
         'rawdev',
         'regexdev',
+        'reorder',
         'table',
         'vhost',
 ]