DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: dev@dpdk.org
Cc: Bruce Richardson <bruce.richardson@intel.com>,
	Ferruh Yigit <ferruh.yigit@intel.com>
Subject: [dpdk-dev] [PATCH v2 10/15] net/kni: add to meson build
Date: Fri,  8 Jun 2018 22:20:43 +0100	[thread overview]
Message-ID: <20180608212048.67261-11-bruce.richardson@intel.com> (raw)
In-Reply-To: <20180608212048.67261-1-bruce.richardson@intel.com>

Since the kni library is an optional library, we need to add a check
here to ensure that the kni wrapper PMD is only built when the main kni
lib is being built.

CC: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 drivers/net/kni/meson.build | 8 ++++++++
 drivers/net/meson.build     | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/kni/meson.build

diff --git a/drivers/net/kni/meson.build b/drivers/net/kni/meson.build
new file mode 100644
index 000000000..77468188b
--- /dev/null
+++ b/drivers/net/kni/meson.build
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+# this driver can be built if-and-only-if KNI library is buildable
+build = dpdk_conf.has('LIB_LIBRTE_KNI')
+allow_experimental_apis = true
+sources = files('rte_eth_kni.c')
+deps += 'kni'
diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index c983f90b1..213fe734c 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -6,7 +6,8 @@ drivers = ['af_packet', 'ark', 'avp',
 	'bnxt', 'cxgbe', 'dpaa', 'dpaa2',
 	'e1000', 'ena', 'enic', 'failsafe',
 	'fm10k', 'i40e', 'ifcvf', 'ixgbe',
-	'mvpp2', 'null', 'octeontx', 'pcap', 'ring',
+	'kni', 'mvpp2', 'null',
+	'octeontx', 'pcap', 'ring',
 	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
-- 
2.17.1

  parent reply	other threads:[~2018-06-08 21:21 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-17 20:15 [dpdk-dev] [PATCH-18.08 00/15] add meson support for more net drivers Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 01/15] net/ark: add to meson build Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 02/15] net/avp: " Bruce Richardson
2018-05-18 11:13   ` Legacy, Allain
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 03/15] net/bnx2x: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 04/15] net/bnxt: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 05/15] net/cxgbe: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 06/15] net/ena: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 07/15] net/failsafe: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 08/15] net/ifc: rename to ifcvf Bruce Richardson
2018-05-18  1:52   ` Wang, Xiao W
2018-05-18  8:12     ` Bruce Richardson
2018-05-18 16:37       ` Wang, Xiao W
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 09/15] net/ifcvf: add to meson build Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 10/15] net/kni: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 11/15] net/liquidio: " Bruce Richardson
2018-05-21  8:47   ` Shijith Thotton
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 12/15] net/nfp: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 13/15] net/softnic: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 14/15] net/szedata2: " Bruce Richardson
2018-05-17 20:15 ` [dpdk-dev] [PATCH-18.08 15/15] net/vhost: " Bruce Richardson
2018-06-08 21:20 ` [dpdk-dev] [PATCH v2 00/15] add meson support for more net drivers Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 01/15] net/ark: add to meson build Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 02/15] net/avp: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 03/15] net/bnx2x: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 04/15] net/bnxt: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 05/15] net/cxgbe: " Bruce Richardson
2018-06-14 14:55     ` Ferruh Yigit
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 06/15] net/ena: " Bruce Richardson
2018-06-14 14:55     ` Ferruh Yigit
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 07/15] net/failsafe: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 08/15] net/ifc: rename to ifcvf Bruce Richardson
2018-06-13  2:46     ` Wang, Xiao W
2018-06-13 10:19       ` Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 09/15] net/ifcvf: add to meson build Bruce Richardson
2018-06-08 21:20   ` Bruce Richardson [this message]
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 11/15] net/liquidio: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 12/15] net/nfp: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 13/15] net/softnic: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 14/15] net/szedata2: " Bruce Richardson
2018-06-08 21:20   ` [dpdk-dev] [PATCH v2 15/15] net/vhost: " Bruce Richardson
2018-06-14 14:55   ` [dpdk-dev] [PATCH v2 00/15] add meson support for more net drivers Ferruh Yigit
2018-06-14 16:25   ` Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180608212048.67261-11-bruce.richardson@intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).