feaf75d92f2e975b32977c4429e085c0019c0ef5
[dpdk.git] / drivers / common / octeontx2 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 sources= files('otx2_dev.c',
6                 'otx2_mbox.c',
7                 'otx2_common.c',
8                )
9
10 extra_flags = []
11 # This integrated controller runs only on a arm64 machine, remove 32bit warnings
12 if not dpdk_conf.get('RTE_ARCH_64')
13         extra_flags += ['-Wno-int-to-pointer-cast', '-Wno-pointer-to-int-cast']
14 endif
15
16 foreach flag: extra_flags
17         if cc.has_argument(flag)
18                 cflags += flag
19         endif
20 endforeach
21
22 deps = ['eal', 'pci', 'ethdev']
23 includes += include_directories('../../common/octeontx2',
24                 '../../bus/pci')