]> git.droids-corp.org - dpdk.git/commitdiff
examples/kni: fix dependency check for meson build
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 3 Jul 2018 10:31:17 +0000 (11:31 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 12 Jul 2018 10:29:07 +0000 (12:29 +0200)
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 <bruce.richardson@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
examples/kni/meson.build

index 0443ab99b9ed4b89a4aae5ee5662ee39372ce605..7913163949001626ee29e3db30251685a722d610 100644 (file)
@@ -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
-endif
+# 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(
        'main.c'