summaryrefslogtreecommitdiff
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2018-09-18 15:58:22 +0100
committerThomas Monjalon <thomas@monjalon.net>2018-09-18 22:53:35 +0200
commit263b9ba2d32ee14efe8200710a1cb74a7864282d (patch)
tree1d660f73305bbfb4ed8c9d7856f639933b5ca4b9 /drivers/net/vmxnet3
parent30d3d016830135c7c2d03b386f3bb385287a6316 (diff)
downloaddpdk-next-eventdev-263b9ba2d32ee14efe8200710a1cb74a7864282d.zip
dpdk-next-eventdev-263b9ba2d32ee14efe8200710a1cb74a7864282d.tar.gz
dpdk-next-eventdev-263b9ba2d32ee14efe8200710a1cb74a7864282d.tar.xz
net/vmxnet3: add in meson build
Note that the library built by meson will not have the _uio suffix: librte_pmd_vmxnet3.so - as it follows the directory name, while the legacy makefile rename it to librte_pmd_vmxnet3_uio.so. Signed-off-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'drivers/net/vmxnet3')
-rw-r--r--drivers/net/vmxnet3/meson.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/vmxnet3/meson.build b/drivers/net/vmxnet3/meson.build
new file mode 100644
index 0000000..a92bd28
--- /dev/null
+++ b/drivers/net/vmxnet3/meson.build
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
+
+allow_experimental_apis = true
+sources += files(
+ 'vmxnet3_ethdev.c',
+ 'vmxnet3_rxtx.c',
+)
+
+error_cflags = [
+ '-Wno-unused-parameter', '-Wno-unused-value',
+ '-Wno-strict-aliasing', '-Wno-format-extra-args',
+]
+foreach flag: error_cflags
+ if cc.has_argument(flag)
+ cflags += flag
+ endif
+endforeach