path: root/examples
diff options
authorBruce Richardson <>2018-07-03 11:31:17 +0100
committerThomas Monjalon <>2018-07-12 12:29:07 +0200
commit90406a3d49eee7ce4bddf54136906569a6fc73a7 (patch)
tree9e6826294741ade02e1ee4f6fa7dc684e636d27a /examples
parent8a1927626100649389a69d480d99731c2fe47e5a (diff)
examples/kni: fix dependency check for meson build
Rather than hard-coding the example app to be built only when a set of conditions are met, we can simplify things by having the app built when KNI library itself is available. That saves us duplicating the same set of restrictions on both library and example app. Fixes: 89f0711f9ddf ("examples: build some samples with meson") Signed-off-by: Bruce Richardson <> Acked-by: Hemant Agrawal <> Acked-by: Ferruh Yigit <>
Diffstat (limited to 'examples')
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/kni/ b/examples/kni/
index 0443ab9..7913163 100644
--- a/examples/kni/
+++ b/examples/kni/
@@ -6,9 +6,8 @@
# To build this example as a standalone application with an already-installed
# DPDK instance, use 'make'
-if host_machine.system() != 'linux'
- build = false
+# this app can be built if-and-only-if KNI library is buildable
+build = dpdk_conf.has('RTE_LIBRTE_KNI')
deps += ['kni', 'bus_pci']
sources = files(