On Tue, Jul 03, 2018 at 12:47:18AM +0100, Ferruh Yigit wrote: > On 6/8/2018 5:38 PM, Bruce Richardson wrote: > > 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.richard...@intel.com> > > --- > > examples/kni/meson.build | 5 ++--- > > 1 file changed, 2 insertions(+), 3 deletions(-) > > > > diff --git a/examples/kni/meson.build b/examples/kni/meson.build > > index 0443ab99b..41b87f8b3 100644 > > --- a/examples/kni/meson.build > > +++ b/examples/kni/meson.build > > @@ -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('LIB_LIBRTE_KNI') > > s/LIB_LIBRTE_KNI/RTE_LIBRTE_KNI/ > > Same needs to be updated in drivers/net/kni/meson.build too > Thanks, good catch.
- [dpdk-dev] [PATCH 4/7] build: disable pointer to int conv... Bruce Richardson
- [dpdk-dev] [PATCH 3/7] net/sfc: disable for 32-bit builds Bruce Richardson
- Re: [dpdk-dev] [PATCH 3/7] net/sfc: disable for 32-b... Andrew Rybchenko
- [dpdk-dev] [PATCH 5/7] dpaa2: fix default IOVA build sett... Bruce Richardson
- Re: [dpdk-dev] [PATCH 5/7] dpaa2: fix default IOVA b... Hemant Agrawal
- [dpdk-dev] [PATCH 7/7] net/avp: fix 32-bit meson builds Bruce Richardson
- Re: [dpdk-dev] [PATCH 7/7] net/avp: fix 32-bit meson... Legacy, Allain
- [dpdk-dev] [PATCH 6/7] examples/kni: fix dependency check... Bruce Richardson
- Re: [dpdk-dev] [PATCH 6/7] examples/kni: fix depende... Ferruh Yigit
- Re: [dpdk-dev] [PATCH 6/7] examples/kni: fix dep... Bruce Richardson
- Re: [dpdk-dev] [PATCH 0/7] Enable 32-bit native builds wi... Hemant Agrawal
- [dpdk-dev] [PATCH v2 0/8] Enable 32-bit native builds wit... Bruce Richardson
- [dpdk-dev] [PATCH v2 2/8] bpf: fix 32-bit build supp... Bruce Richardson
- [dpdk-dev] [PATCH v2 3/8] net/sfc: disable for 32-bi... Bruce Richardson
- [dpdk-dev] [PATCH v2 4/8] build: disable pointer to ... Bruce Richardson
- [dpdk-dev] [PATCH v2 1/8] kni: disable for 32-bit me... Bruce Richardson
- [dpdk-dev] [PATCH v2 6/8] examples/kni: fix dependen... Bruce Richardson
- Re: [dpdk-dev] [PATCH v2 6/8] examples/kni: fix ... Ferruh Yigit
- [dpdk-dev] [PATCH v2 7/8] net/avp: fix 32-bit meson ... Bruce Richardson
- [dpdk-dev] [PATCH v2 5/8] dpaa2: fix default IOVA bu... Bruce Richardson