add meson support for FreeBSD

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

Signed-off-by: Srikanth Kaka <srikant...@oneconvergence.com>
Signed-off-by: Vag Singh <vag.si...@oneconvergence.com>
Signed-off-by: Anand Thulasiram <av...@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

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 <sthem...@microsoft.com>
 M: Long Li <lon...@microsoft.com>
+M: Srikanth Kaka <srikant...@oneconvergence.com>
 F: drivers/bus/vmbus/
 
 
@@ -824,6 +825,7 @@ F: doc/guides/nics/vdev_netvsc.rst
 Microsoft Hyper-V netvsc
 M: Stephen Hemminger <sthem...@microsoft.com>
 M: Long Li <lon...@microsoft.com>
+M: Srikanth Kaka <srikant...@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)
-- 
2.30.1

Reply via email to