net/octeontx2: add basic stats operation
[dpdk.git] / drivers / net / octeontx2 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 sources = files(
6                 'otx2_mac.c',
7                 'otx2_link.c',
8                 'otx2_stats.c',
9                 'otx2_ethdev.c',
10                 'otx2_ethdev_irq.c',
11                 'otx2_ethdev_ops.c',
12                 'otx2_ethdev_debug.c',
13                 'otx2_ethdev_devargs.c'
14                 )
15
16 deps += ['bus_pci', 'common_octeontx2', 'mempool_octeontx2']
17
18 extra_flags = []
19 # This integrated controller runs only on a arm64 machine, remove 32bit warnings
20 if not dpdk_conf.get('RTE_ARCH_64')
21         extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
22 endif
23
24 foreach flag: extra_flags
25         if cc.has_argument(flag)
26                 cflags += flag
27         endif
28 endforeach