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
committerMonendra Singh Kushwaha <kmonendra@marvell.com>2024-06-06 08:51:01 +0000
commit2ab34c8cb091421492c6395ef87a5ea0933d080f (patch)
tree2941a9cf3375665ebff0c3c7174184a01be30128 /src/plugins/dev_octeon/CMakeLists.txt
parent1121f0067c0371c95c521da8563953a27ec47f4c (diff)
octeon: add support for Marvell Octeon9 SoC
Type: feature Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com> Change-Id: I5db58b8ec41b45596bc03b4a336a184c17871294 (cherry picked from commit a93c85a5793852b6edda20bc1100fa9fabd0eb29)
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