[v2,11/11] net/netvsc: add meson support for FreeBSD

Message ID 20211008091809.96477-1-srikanth.k@oneconvergence.com (mailing list archive)
State Not Applicable, archived
Headers
Series None |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation warning apply issues

Commit Message

Srikanth Kaka Oct. 8, 2021, 9:18 a.m. UTC
From: srikanth-oc <srikanth.k@oneconvergence.com>

add meson support for FreeBSD

v2 - moved include statement to after OS detection
   - updated ./MAINTAINERS file

Signed-off-by: Srikanth Kaka <srikanth.k@oneconvergence.com>
Signed-off-by: Vag Singh <vag.singh@oneconvergence.com>
Signed-off-by: Anand Thulasiram <avelu@juniper.net>
---
 MAINTAINERS                            | 2 ++
 drivers/net/netvsc/freebsd/meson.build | 6 ++++++
 drivers/net/netvsc/linux/meson.build   | 6 ++++++
 drivers/net/netvsc/meson.build         | 4 ++++
 4 files changed, 18 insertions(+)
 create mode 100644 drivers/net/netvsc/freebsd/meson.build
 create mode 100644 drivers/net/netvsc/linux/meson.build
  

Patch

diff --git a/MAINTAINERS b/MAINTAINERS
index 278e5b3226..930d789945 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -552,6 +552,7 @@  F: drivers/bus/vdev/
 VMBUS bus driver
 M: Stephen Hemminger <sthemmin@microsoft.com>
 M: Long Li <longli@microsoft.com>
+M: Srikanth Kaka <srikanth.k@oneconvergence.com>
 F: drivers/bus/vmbus/
 
 
@@ -824,6 +825,7 @@  F: doc/guides/nics/vdev_netvsc.rst
 Microsoft Hyper-V netvsc
 M: Stephen Hemminger <sthemmin@microsoft.com>
 M: Long Li <longli@microsoft.com>
+M: Srikanth Kaka <srikanth.k@oneconvergence.com>
 F: drivers/net/netvsc/
 F: doc/guides/nics/netvsc.rst
 F: doc/guides/nics/features/netvsc.ini
diff --git a/drivers/net/netvsc/freebsd/meson.build b/drivers/net/netvsc/freebsd/meson.build
new file mode 100644
index 0000000000..78f824f701
--- /dev/null
+++ b/drivers/net/netvsc/freebsd/meson.build
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Microsoft Corporation
+
+sources += files(
+	'hn_os.c',
+)
diff --git a/drivers/net/netvsc/linux/meson.build b/drivers/net/netvsc/linux/meson.build
new file mode 100644
index 0000000000..78f824f701
--- /dev/null
+++ b/drivers/net/netvsc/linux/meson.build
@@ -0,0 +1,6 @@ 
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Microsoft Corporation
+
+sources += files(
+	'hn_os.c',
+)
diff --git a/drivers/net/netvsc/meson.build b/drivers/net/netvsc/meson.build
index f74b941f65..6c9f5cfc56 100644
--- a/drivers/net/netvsc/meson.build
+++ b/drivers/net/netvsc/meson.build
@@ -7,6 +7,8 @@  if is_windows
     subdir_done()
 endif
 
+includes += include_directories(exec_env)
+
 build = dpdk_conf.has('RTE_BUS_VMBUS')
 reason = 'missing dependency, DPDK VMBus driver'
 sources = files(
@@ -18,3 +20,5 @@  sources = files(
 )
 
 deps += ['bus_vmbus' ]
+
+subdir(exec_env)