[dpdk-dev,5/6] test/test: fix dependency on KNI lib for BSD meson build

Message ID 20180131174249.257933-6-bruce.richardson@intel.com
State Superseded, archived
Delegated to: Bruce Richardson
Headers show


Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Jan. 31, 2018, 5:42 p.m.
The KNI library is not built on FreeBSD, so it needs to be an
optional rather than a mandatory dependency for building the autotest

Fixes: b5dc795a8a55 ("test: build app with meson as dpdk-test")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
 test/test/meson.build | 3 +++
 1 file changed, 3 insertions(+)


diff --git a/test/test/meson.build b/test/test/meson.build
index e8ddb76e3..eb3d87a4d 100644
--- a/test/test/meson.build
+++ b/test/test/meson.build
@@ -230,6 +230,9 @@  endif
 if dpdk_conf.has('RTE_LIBRTE_POWER')
 	test_deps += 'power'
+if dpdk_conf.has('RTE_LIBRTE_KNI')
+	test_deps += 'kni'
 test_dep_objs = []
 foreach d:test_deps