Files
vpp/src/plugins/dev_octeon/CMakeLists.txt
Monendra Singh Kushwaha b26b2bcd43 octeon: add counters support for port and queue
Type: feature

Change-Id: I5d52d78a93c7d0a12b9cee16fe7ebabdc2b19f0a
Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com>
2024-06-10 12:54:36 +00:00

48 lines
985 B
CMake

# SPDX-License-Identifier: Apache-2.0
# Copyright(c) 2022 Cisco Systems, Inc.
if (NOT VPP_PLATFORM_NAME STREQUAL "octeon10" AND NOT VPP_PLATFORM_NAME STREQUAL "octeon9")
return()
endif()
# Find OCTEON roc files
vpp_find_path(OCTEON_ROC_DIR PATH_SUFFIXES octeon-roc NAMES platform.h)
vpp_plugin_find_library(dev-octeon OCTEON_ROC_LIB "libocteon-roc.a")
if (NOT OCTEON_ROC_DIR)
message("OCTEON ROC files not found - Marvell OCTEON device plugin disabled")
return()
endif()
if (NOT OCTEON_ROC_LIB)
message("OCTEON ROC library (libocteon-roc.a) not found - Marvell OCTEON device plugin disabled")
return ()
endif()
include_directories (${OCTEON_ROC_DIR}/)
if (VPP_PLATFORM_NAME STREQUAL "octeon9")
add_compile_definitions(PLATFORM_OCTEON9)
endif()
add_vpp_plugin(dev_octeon
SOURCES
init.c
format.c
port.c
queue.c
roc_helper.c
rx_node.c
tx_node.c
flow.c
counter.c
MULTIARCH_SOURCES
rx_node.c
tx_node.c
LINK_LIBRARIES
${OCTEON_ROC_LIB}
)