summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/drivers/net/octeontx2/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/dpdk/drivers/net/octeontx2/meson.build')
-rw-r--r--src/spdk/dpdk/drivers/net/octeontx2/meson.build44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/spdk/dpdk/drivers/net/octeontx2/meson.build b/src/spdk/dpdk/drivers/net/octeontx2/meson.build
new file mode 100644
index 000000000..599ade672
--- /dev/null
+++ b/src/spdk/dpdk/drivers/net/octeontx2/meson.build
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(C) 2019 Marvell International Ltd.
+#
+
+sources = files('otx2_rx.c',
+ 'otx2_tx.c',
+ 'otx2_tm.c',
+ 'otx2_rss.c',
+ 'otx2_mac.c',
+ 'otx2_ptp.c',
+ 'otx2_flow.c',
+ 'otx2_link.c',
+ 'otx2_vlan.c',
+ 'otx2_stats.c',
+ 'otx2_mcast.c',
+ 'otx2_lookup.c',
+ 'otx2_ethdev.c',
+ 'otx2_flow_ctrl.c',
+ 'otx2_flow_parse.c',
+ 'otx2_flow_utils.c',
+ 'otx2_ethdev_irq.c',
+ 'otx2_ethdev_ops.c',
+ 'otx2_ethdev_sec.c',
+ 'otx2_ethdev_debug.c',
+ 'otx2_ethdev_devargs.c'
+ )
+
+deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
+deps += ['common_octeontx2', 'mempool_octeontx2']
+
+extra_flags = ['-flax-vector-conversions']
+# This integrated controller runs only on a arm64 machine, remove 32bit warnings
+if not dpdk_conf.get('RTE_ARCH_64')
+ extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
+endif
+
+foreach flag: extra_flags
+ if cc.has_argument(flag)
+ cflags += flag
+ endif
+endforeach
+
+includes += include_directories('../../common/cpt')
+includes += include_directories('../../crypto/octeontx2')