From patchwork Wed May 16 22:08:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 40121 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EDB248E7C; Thu, 17 May 2018 00:08:38 +0200 (CEST) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id 87E4B8E6D for ; Thu, 17 May 2018 00:08:33 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id e1-v6so876344pga.6 for ; Wed, 16 May 2018 15:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B0/rWIerD7S7srfe1JL3/6pjj1mdEcR7ajpCKhipXuc=; b=t7req5BKLrHDHT6ehXDF6a8QVQk8VKG4TySsmpFHqODPNVHRrRPWXhm55Jj+1p/X7X tWiPEgFNbi+otVGojsJ6u5HlYwMePh0WVv6t0BiULa3MYGtMNAUCK+g8t/soZLVJEQ2J JrHo6/07XWFYzMVy4pUum2m0/o6vdCMZHdtLmbCZA4cmCMPYNWTJx9PEoFM5SBb2GMa5 1N5QD/CDHqG6Ze0zfWnWbdFkqDPLUEickq5rcL0NT2ukZwBoNJ6+rZTbghcXKbN+GDFG 1JNKmmKtjpxQaqAQ1fBSXcBoQlnx9QjK6EfpQ6V/da9wYxR+AwDWr9MZUEPFJInACoTC k3Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B0/rWIerD7S7srfe1JL3/6pjj1mdEcR7ajpCKhipXuc=; b=oGnyAtlLq3RtOMPdjkGFX6yLcJbzUN7vtFfPl60EGf08paLUcXygm4fIXyrP/J3D/P iBHDe4X6v2GAJb1APwClalG6j3LwxMDSATtlqj8+sinU22ceyIq4SkLz1XFQPFDTGXVP 6qhR+50a4bfQWltcqSb/mMPhyK5xKoGsbjnSonhmuEKv3M7l50siwftfb7RrcMLI9yij +FDrYAd9h8xYtZLKyMOrUq6C13VGGcYm5mzxfoeRcLe8R7j1l1U9YF5+ppHJrk2GPQB3 xf3F7ddtDx4Vb8PrAhSzQ7KmBnQByCh7xbJD+kOxAY+jlvnZCm63RjnejFa9yqWFIWnY a+eQ== X-Gm-Message-State: ALKqPwfSV8WNeeJruffKg6G4tlBovOyugje84agLFn9QIEnT/YeavwE7 qED/lAzHsBeZMAn4/xrRcNi+m/nivaY= X-Google-Smtp-Source: AB8JxZr4GslGcnDblxBu7U0u5+wviX9HTcUtu/82LcXDz3pAtFlZO1wwBlvOfJq3qoN7vTfZbdVh5A== X-Received: by 2002:a63:6d8f:: with SMTP id i137-v6mr2122781pgc.268.1526508512416; Wed, 16 May 2018 15:08:32 -0700 (PDT) Received: from xeon-e3.lan (204-195-35-107.wavecable.com. [204.195.35.107]) by smtp.gmail.com with ESMTPSA id k24-v6sm5078962pff.118.2018.05.16.15.08.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 15:08:31 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 16 May 2018 15:08:23 -0700 Message-Id: <20180516220823.21943-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516220823.21943-1-stephen@networkplumber.org> References: <20180516220823.21943-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH v9 5/5] bus/vmbus and net/netvsc: add meson build support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Stephen Hemminger Update meson build files for new netvsc and vmbus drivers. Signed-off-by: Stephen Hemminger --- drivers/bus/meson.build | 2 +- drivers/bus/vmbus/meson.build | 18 ++++++++++++++++++ drivers/net/meson.build | 2 +- drivers/net/netvsc/meson.build | 7 +++++++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 drivers/bus/vmbus/meson.build create mode 100644 drivers/net/netvsc/meson.build diff --git a/drivers/bus/meson.build b/drivers/bus/meson.build index 52c755dcfd8e..80de2d91d52d 100644 --- a/drivers/bus/meson.build +++ b/drivers/bus/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['dpaa', 'fslmc', 'ifpga', 'pci', 'vdev'] +drivers = ['dpaa', 'fslmc', 'ifpga', 'pci', 'vdev', 'vmbus'] std_deps = ['eal'] config_flag_fmt = 'RTE_LIBRTE_@0@_BUS' driver_name_fmt = 'rte_bus_@0@' diff --git a/drivers/bus/vmbus/meson.build b/drivers/bus/vmbus/meson.build new file mode 100644 index 000000000000..18daabecc62d --- /dev/null +++ b/drivers/bus/vmbus/meson.build @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: BSD-3-Clause + +allow_experimental_apis = true + +install_headers('rte_bus_vmbus.h','rte_vmbus_reg.h') + +sources = files('vmbus_common.c', + 'vmbus_channel.c', + 'vmbus_bufring.c', + 'vmbus_common_uio.c') + +if host_machine.system() == 'linux' + sources += files('linux/vmbus_bus.c', + 'linux/vmbus_uio.c') + includes += include_directories('linux') +else + build = false +endif diff --git a/drivers/net/meson.build b/drivers/net/meson.build index b7d00a04c8ef..74d6c0f7cabf 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -3,7 +3,7 @@ drivers = ['af_packet', 'axgbe', 'bonding', 'dpaa', 'dpaa2', 'e1000', 'enic', 'fm10k', 'i40e', 'ixgbe', - 'mvpp2', 'null', 'octeontx', 'pcap', 'ring', + 'mvpp2', 'netvsc', '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 diff --git a/drivers/net/netvsc/meson.build b/drivers/net/netvsc/meson.build new file mode 100644 index 000000000000..68fe9b7e6b46 --- /dev/null +++ b/drivers/net/netvsc/meson.build @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2018 Microsoft Corporation + +version = 2 +sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c') + +deps += ['bus_vmbus' ]