drivers: disable OCTEON TX2 in 32-bit build
[dpdk.git] / drivers / net / octeontx2 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 if not dpdk_conf.get('RTE_ARCH_64')
6         build = false
7         reason = 'only supported on 64-bit'
8         subdir_done()
9 endif
10
11 sources = files('otx2_rx.c',
12                 'otx2_tx.c',
13                 'otx2_tm.c',
14                 'otx2_rss.c',
15                 'otx2_mac.c',
16                 'otx2_ptp.c',
17                 'otx2_flow.c',
18                 'otx2_link.c',
19                 'otx2_vlan.c',
20                 'otx2_stats.c',
21                 'otx2_mcast.c',
22                 'otx2_lookup.c',
23                 'otx2_ethdev.c',
24                 'otx2_flow_ctrl.c',
25                 'otx2_flow_parse.c',
26                 'otx2_flow_utils.c',
27                 'otx2_ethdev_irq.c',
28                 'otx2_ethdev_ops.c',
29                 'otx2_ethdev_sec.c',
30                 'otx2_ethdev_debug.c',
31                 'otx2_ethdev_devargs.c'
32                 )
33
34 deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
35 deps += ['common_octeontx2', 'mempool_octeontx2']
36
37 extra_flags = ['-flax-vector-conversions']
38 foreach flag: extra_flags
39         if cc.has_argument(flag)
40                 cflags += flag
41         endif
42 endforeach
43
44 includes += include_directories('../../common/cpt')
45 includes += include_directories('../../crypto/octeontx2')