2019-05-28 08:55:22 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(C) 2019 Marvell International Ltd.
|
|
|
|
#
|
|
|
|
|
2020-12-22 00:45:11 +00:00
|
|
|
if is_windows
|
2021-04-20 10:22:25 +00:00
|
|
|
build = false
|
|
|
|
reason = 'not supported on Windows'
|
|
|
|
subdir_done()
|
2020-12-22 00:45:11 +00:00
|
|
|
endif
|
|
|
|
|
2020-11-09 16:44:30 +00:00
|
|
|
if not dpdk_conf.get('RTE_ARCH_64')
|
2021-04-20 10:22:25 +00:00
|
|
|
build = false
|
|
|
|
reason = 'only supported on 64-bit'
|
|
|
|
subdir_done()
|
2020-11-09 16:44:30 +00:00
|
|
|
endif
|
|
|
|
|
2021-04-20 10:22:25 +00:00
|
|
|
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_dump.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',
|
|
|
|
)
|
2019-05-28 08:55:22 +00:00
|
|
|
|
2020-02-04 11:17:15 +00:00
|
|
|
deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
|
2020-02-04 11:17:14 +00:00
|
|
|
deps += ['common_octeontx2', 'mempool_octeontx2']
|
2019-05-28 11:13:13 +00:00
|
|
|
|
2020-01-24 15:37:54 +00:00
|
|
|
extra_flags = ['-flax-vector-conversions']
|
2019-05-28 11:13:13 +00:00
|
|
|
foreach flag: extra_flags
|
2021-04-20 10:22:25 +00:00
|
|
|
if cc.has_argument(flag)
|
|
|
|
cflags += flag
|
|
|
|
endif
|
2019-05-28 11:13:13 +00:00
|
|
|
endforeach
|
2020-02-04 11:17:15 +00:00
|
|
|
|
|
|
|
includes += include_directories('../../common/cpt')
|
|
|
|
includes += include_directories('../../crypto/octeontx2')
|