2017-12-18 15:56:25 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Intel Corporation
|
2017-08-30 14:38:34 +01:00
|
|
|
|
2018-02-16 16:53:34 +00:00
|
|
|
# override default name to drop the hyphen
|
|
|
|
name = 'testpmd'
|
2018-07-11 15:14:09 +01:00
|
|
|
cflags += '-Wno-deprecated-declarations'
|
2021-04-20 11:22:21 +01:00
|
|
|
sources = files(
|
|
|
|
'5tswap.c',
|
|
|
|
'cmdline.c',
|
|
|
|
'cmdline_flow.c',
|
|
|
|
'cmdline_mtr.c',
|
|
|
|
'cmdline_tm.c',
|
2021-10-20 18:14:57 +03:00
|
|
|
'cmd_flex_item.c',
|
2021-04-20 11:22:21 +01:00
|
|
|
'config.c',
|
|
|
|
'csumonly.c',
|
|
|
|
'flowgen.c',
|
|
|
|
'icmpecho.c',
|
|
|
|
'ieee1588fwd.c',
|
|
|
|
'iofwd.c',
|
|
|
|
'macfwd.c',
|
|
|
|
'macswap.c',
|
|
|
|
'noisy_vnf.c',
|
|
|
|
'parameters.c',
|
|
|
|
'rxonly.c',
|
2021-10-21 18:41:42 +08:00
|
|
|
'shared_rxq_fwd.c',
|
2021-04-20 11:22:21 +01:00
|
|
|
'testpmd.c',
|
|
|
|
'txonly.c',
|
|
|
|
'util.c',
|
|
|
|
)
|
2017-08-30 14:38:34 +01:00
|
|
|
|
2021-11-08 11:08:08 +01:00
|
|
|
if dpdk_conf.has('RTE_HAS_JANSSON')
|
|
|
|
ext_deps += jansson_dep
|
|
|
|
endif
|
|
|
|
|
2022-07-28 17:26:18 +02:00
|
|
|
deps += ['ethdev', 'cmdline']
|
2021-11-05 14:30:18 +01:00
|
|
|
if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
|
|
|
|
deps += 'crypto_scheduler'
|
2017-08-30 14:38:34 +01:00
|
|
|
endif
|
2020-10-15 16:05:54 +01:00
|
|
|
if dpdk_conf.has('RTE_LIB_BITRATESTATS')
|
2021-04-20 11:22:21 +01:00
|
|
|
deps += 'bitratestats'
|
2020-10-15 16:05:47 +01:00
|
|
|
endif
|
2021-11-05 14:30:18 +01:00
|
|
|
if dpdk_conf.has('RTE_LIB_BPF')
|
|
|
|
sources += files('bpf_cmd.c')
|
|
|
|
deps += 'bpf'
|
|
|
|
endif
|
2021-11-17 12:28:44 +01:00
|
|
|
if dpdk_conf.has('RTE_LIB_GRO')
|
|
|
|
deps += 'gro'
|
|
|
|
endif
|
|
|
|
if dpdk_conf.has('RTE_LIB_GSO')
|
|
|
|
deps += 'gso'
|
|
|
|
endif
|
2020-10-15 16:05:54 +01:00
|
|
|
if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
|
2021-04-20 11:22:21 +01:00
|
|
|
deps += 'latencystats'
|
2020-10-15 16:05:47 +01:00
|
|
|
endif
|
2021-11-17 12:28:45 +01:00
|
|
|
if dpdk_conf.has('RTE_LIB_METRICS')
|
|
|
|
deps += 'metrics'
|
|
|
|
endif
|
2021-11-05 14:30:18 +01:00
|
|
|
if dpdk_conf.has('RTE_LIB_PDUMP')
|
|
|
|
deps += 'pdump'
|
2020-10-15 16:05:47 +01:00
|
|
|
endif
|
2020-10-15 16:05:54 +01:00
|
|
|
if dpdk_conf.has('RTE_NET_BNXT')
|
2021-04-20 11:22:21 +01:00
|
|
|
deps += 'net_bnxt'
|
2018-06-08 22:20:37 +01:00
|
|
|
endif
|
2020-10-15 16:05:54 +01:00
|
|
|
if dpdk_conf.has('RTE_NET_I40E')
|
2021-04-20 11:22:21 +01:00
|
|
|
deps += 'net_i40e'
|
2017-08-30 14:38:34 +01:00
|
|
|
endif
|
2020-10-15 16:05:54 +01:00
|
|
|
if dpdk_conf.has('RTE_NET_IXGBE')
|
2021-04-20 11:22:21 +01:00
|
|
|
deps += 'net_ixgbe'
|
2017-08-30 14:38:34 +01:00
|
|
|
endif
|
2020-10-15 16:05:54 +01:00
|
|
|
if dpdk_conf.has('RTE_NET_DPAA')
|
2021-04-20 11:22:21 +01:00
|
|
|
deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
|
2018-03-14 13:26:05 +05:30
|
|
|
endif
|
2022-05-24 22:06:42 +02:00
|
|
|
|
|
|
|
# Driver-specific commands are located in driver directories.
|
|
|
|
includes = include_directories('.')
|
|
|
|
sources += testpmd_drivers_sources
|
|
|
|
deps += testpmd_drivers_deps
|