Skip to content

Commit

Permalink
Rename platform/innovium to platform/marvell-teralynx
Browse files Browse the repository at this point in the history
  • Loading branch information
krismarvell committed Oct 25, 2024
1 parent 4e9c08a commit 7633b4d
Show file tree
Hide file tree
Showing 229 changed files with 148 additions and 255 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@
[submodule "platform/marvell/sonic-platform-marvell"]
path = platform/marvell/sonic-platform-marvell
url = https://github.com/Marvell-switching/sonic-platform-arm64.git
[submodule "platform/innovium/sonic-platform-marvell"]
path = platform/innovium/sonic-platform-marvell
url = https://github.com/Marvell-switching/sonic-platform-marvell
[submodule "platform/marvell-teralynx/sonic-platform-marvell-teralynx"]
path = platform/marvell-teralynx/sonic-platform-marvell-teralynx
url = https://github.com/Marvell-switching/sonic-platform-marvell.git
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Broadcom](https://dev.azure.com/mssonic/build/_apis/build/status/broadcom/Azure.sonic-buildimage.official.broadcom?branchName=master&label=Broadcom)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=138&branchName=master)
[![Centec](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec?branchName=master&label=Centec)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=143&branchName=master)
[![Centec(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/centec/Azure.sonic-buildimage.official.centec-arm64?branchName=master&label=Centec-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=140&branchName=master)
[![Innovium](https://dev.azure.com/mssonic/build/_apis/build/status/innovium/Azure.sonic-buildimage.official.innovium?branchName=master&label=Innovium)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=148&branchName=master)
[![Marvell-Teralynx](https://dev.azure.com/mssonic/build/_apis/build/status/marvell-teralynx/Azure.sonic-buildimage.official.innovium?branchName=master&label=Marvell-Teralynx)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=148&branchName=master)
[![Mellanox](https://dev.azure.com/mssonic/build/_apis/build/status/mellanox/Azure.sonic-buildimage.official.mellanox?branchName=master&label=Mellanox)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=139&branchName=master)
[![Marvell(armhf)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-armhf?branchName=master&label=Marvell-armhf)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=141&branchName=master)
[![Marvell(arm64)](https://dev.azure.com/mssonic/build/_apis/build/status/marvell/Azure.sonic-buildimage.official.marvell-arm64?branchName=master&label=Marvell-arm64)](https://dev.azure.com/mssonic/build/_build/latest?definitionId=999&branchName=master)
Expand Down Expand Up @@ -215,7 +215,7 @@ The supported ASIC vendors are:
* PLATFORM=centec
* PLATFORM=nephos
* PLATFORM=nvidia-bluefield
* PLATFORM=innovium
* PLATFORM=marvell-teralynx
* PLATFORM=vs

## Usage for ARM Architecture
Expand Down Expand Up @@ -373,8 +373,8 @@ on the SAI version for each SONiC release.
and Mellanox switch ASIC (gzip tar archive)
* docker-syncd-nephos.gz: docker image for the daemon to sync database
and Nephos switch ASIC (gzip tar archive)
* docker-syncd-invm.gz: docker image for the daemon to sync database
and Innovium switch ASIC (gzip tar archive)
* docker-syncd-mrvl-teralynx.gz: docker image for the daemon to sync database
and Marvell-Teralynx switch ASIC (gzip tar archive)
* docker-sonic-p4.gz: docker image for all-in-one for p4 software switch
(gzip tar archive)
* docker-sonic-vs.gz: docker image for all-in-one for software virtual switch
Expand Down
2 changes: 1 addition & 1 deletion device/celestica/x86_64-cel_midstone-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
2 changes: 1 addition & 1 deletion device/delta/x86_64-delta_agc032-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
2 changes: 1 addition & 1 deletion device/marvell/x86_64-marvell_dbmvtx9180-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
2 changes: 1 addition & 1 deletion device/netberg/x86_64-netberg_aurora_715-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
2 changes: 1 addition & 1 deletion device/wistron/x86_64-wistron_6512_32r-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
2 changes: 1 addition & 1 deletion device/wistron/x86_64-wistron_sw_to3200k-r0/platform_asic
Original file line number Diff line number Diff line change
@@ -1 +1 @@
innovium
marvell-teralynx
2 changes: 1 addition & 1 deletion dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ elif [ "$platform" == "vs" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$platform" == "mellanox" ]; then
ORCHAGENT_ARGS+=""
elif [ "$platform" == "innovium" ]; then
elif [ "$platform" == "marvell-teralynx" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$platform" == "nvidia-bluefield" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
Expand Down
8 changes: 4 additions & 4 deletions dockers/docker-pde/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ config_syncd_vs()
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"
}

config_syncd_innovium()
config_syncd_marvell_teralynx()
{
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"
ulimit -s 65536
export II_ROOT="/var/log/invm"
export II_ROOT="/var/log/mrvl_teralynx"
export II_APPEND_LOG=1
mkdir -p $II_ROOT
}
Expand All @@ -236,8 +236,8 @@ config_syncd()
config_syncd_nephos
elif [ "$SONIC_ASIC_TYPE" == "vs" ]; then
config_syncd_vs
elif [ "$SONIC_ASIC_TYPE" == "innovium" ]; then
config_syncd_innovium
elif [ "$SONIC_ASIC_TYPE" == "marvell-teralynx" ]; then
config_syncd_marvell_teralynx
else
echo "Unknown ASIC type $SONIC_ASIC_TYPE"
exit 1
Expand Down
8 changes: 0 additions & 8 deletions platform/innovium/docker-saiserver-invm.dep

This file was deleted.

14 changes: 0 additions & 14 deletions platform/innovium/docker-saiserver-invm.mk

This file was deleted.

22 changes: 0 additions & 22 deletions platform/innovium/docker-syncd-invm-rpc.mk

This file was deleted.

17 changes: 0 additions & 17 deletions platform/innovium/invm-sai.mk

This file was deleted.

6 changes: 0 additions & 6 deletions platform/innovium/python-saithrift.mk

This file was deleted.

28 changes: 0 additions & 28 deletions platform/innovium/rules.mk

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 8 additions & 0 deletions platform/marvell-teralynx/docker-saiserver-mrvl-teralynx.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DPATH := $($(DOCKER_SAISERVER_MRVL_TERALYNX)_PATH)
DEP_FILES := $(SONIC_COMMON_FILES_LIST) platform/marvell-teralynx/docker-saiserver-mrvl-teralynx.mk platform/marvell-teralynx/docker-saiserver-mrvl-teralynx.dep
DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST)
DEP_FILES += $(shell git ls-files $(DPATH))

$(DOCKER_SAISERVER_MRVL_TERALYNX)_CACHE_MODE := GIT_CONTENT_SHA
$(DOCKER_SAISERVER_MRVL_TERALYNX)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST)
$(DOCKER_SAISERVER_MRVL_TERALYNX)_DEP_FILES := $(DEP_FILES)
14 changes: 14 additions & 0 deletions platform/marvell-teralynx/docker-saiserver-mrvl-teralynx.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# docker image for mrvl-teralynx saiserver

DOCKER_SAISERVER_MRVL_TERALYNX = docker-saiserver$(SAITHRIFT_VER)-mrvl-teralynx.gz
$(DOCKER_SAISERVER_MRVL_TERALYNX)_PATH = $(PLATFORM_PATH)/docker-saiserver-mrvl-teralynx
$(DOCKER_SAISERVER_MRVL_TERALYNX)_DEPENDS += $(SAISERVER)
$(DOCKER_SAISERVER_MRVL_TERALYNX)_LOAD_DOCKERS += $(DOCKER_CONFIG_ENGINE_BOOKWORM)
SONIC_DOCKER_IMAGES += $(DOCKER_SAISERVER_MRVL_TERALYNX)

$(DOCKER_SAISERVER_MRVL_TERALYNX)_CONTAINER_NAME = saiserver$(SAITHRIFT_VER)
$(DOCKER_SAISERVER_MRVL_TERALYNX)_RUN_OPT += --privileged -t
$(DOCKER_SAISERVER_MRVL_TERALYNX)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
$(DOCKER_SAISERVER_MRVL_TERALYNX)_RUN_OPT += -v /var/run/docker-saiserver:/var/run/sswsyncd
$(DOCKER_SAISERVER_MRVL_TERALYNX)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_SAISERVER_MRVL_TERALYNX)_RUN_OPT += -v /host/warmboot:/var/warmboot
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ RUN pip3 install numpy
RUN pip3 install yamlordereddictloader

COPY \
{% for deb in docker_saiserver_invm_debs.split(' ') -%}
{% for deb in docker_saiserver_mrvl_teralynx_debs.split(' ') -%}
debs/{{ deb }}{{' '}}
{%- endfor -%}
debs/

RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; } ; \
{% for deb in docker_saiserver_invm_debs.split(' ') -%}
{% for deb in docker_saiserver_mrvl_teralynx_debs.split(' ') -%}
dpkg_apt debs/{{ deb }}{{'; '}}
{%- endfor %}

Expand Down
22 changes: 22 additions & 0 deletions platform/marvell-teralynx/docker-syncd-mrvl-teralynx-rpc.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# docker image for marvell-teralynx syncd with rpc

DOCKER_SYNCD_MRVL_TERALYNX_RPC = docker-syncd-mrvl-teralynx-rpc.gz
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_PATH = $(PLATFORM_PATH)/docker-syncd-mrvl-teralynx-rpc
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_DEPENDS += $(SYNCD_RPC) $(MRVL_TERALYNX_LIBSAI) $(MRVL_TERALYNX_SHELL)
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_PYTHON_WHEELS += $(PTF_PY3)
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_LOAD_DOCKERS += $(DOCKER_SYNCD_BASE)
SONIC_DOCKER_IMAGES += $(DOCKER_SYNCD_MRVL_TERALYNX_RPC)
SONIC_BOOKWORM_DOCKERS += $(DOCKER_SYNCD_MRVL_TERALYNX_RPC)
ifeq ($(ENABLE_SYNCD_RPC),y)
SONIC_INSTALL_DOCKER_IMAGES += $(DOCKER_SYNCD_MRVL_TERALYNX_RPC)
endif

$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_CONTAINER_NAME = syncd
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_VERSION = 1.0.0-rpc
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_PACKAGE_NAME = syncd
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_RUN_OPT += --privileged -t
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_RUN_OPT += -v /var/run/docker-syncd:/var/run/sswsyncd
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_SYNCD_MRVL_TERALYNX_RPC)_RUN_OPT += -v /host/warmboot:/var/warmboot
Loading

0 comments on commit 7633b4d

Please sign in to comment.