summaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_octeon/CMakeLists.txt
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-02-28 13:09:06 +0530
committerDamjan Marion <dmarion@0xa5.net>2024-05-28 15:59:22 +0000
commita93c85a5793852b6edda20bc1100fa9fabd0eb29 (patch)
tree382c147f47a4e09484ed85186b3e35cff3d6ca7b /src/plugins/dev_octeon/CMakeLists.txt
parentb2c8c481ccb2dab58219fe860321b349789af0aa (diff)
octeon: add support for Marvell Octeon9 SoC
Type: feature Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com> Change-Id: I5db58b8ec41b45596bc03b4a336a184c17871294
Diffstat (limited to 'src/plugins/dev_octeon/CMakeLists.txt')
-rw-r--r--src/plugins/dev_octeon/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/dev_octeon/CMakeLists.txt b/src/plugins/dev_octeon/CMakeLists.txt
index e8abf1a3389..0f6b32bbecd 100644
--- a/src/plugins/dev_octeon/CMakeLists.txt
+++ b/src/plugins/dev_octeon/CMakeLists.txt
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright(c) 2022 Cisco Systems, Inc.
-if (NOT VPP_PLATFORM_NAME STREQUAL "octeon10")
+if (NOT VPP_PLATFORM_NAME STREQUAL "octeon10" AND NOT VPP_PLATFORM_NAME STREQUAL "octeon9")
return()
endif()
@@ -21,6 +21,10 @@ 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