Skip to content

Commit

Permalink
Support for cisco-8000 platform for sonic-sairedis/syncd (#823)
Browse files Browse the repository at this point in the history
This fix brings in support for cisco-8000 platform into sonic-sairedis/syncd. It checks for the SONIC_ASIC_TYPE keyword and picks up the PLATFORM type to see if "cisco-8000" word is available. Accordingly, it sources the required paths for SDK to carry on its operations.
  • Loading branch information
VenkatCisco authored Jul 6, 2021
1 parent 1eacd05 commit 969ad94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ config_syncd_innovium()
mkdir -p $II_ROOT
}

config_syncd_cisco_8000()
{
export BASE_OUTPUT_DIR=/opt/cisco/silicon-one
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"
}

config_syncd()
{
check_warm_boot
Expand All @@ -294,6 +300,8 @@ config_syncd()
config_syncd_vs
elif [ "$SONIC_ASIC_TYPE" == "innovium" ]; then
config_syncd_innovium
elif [ "$SONIC_ASIC_TYPE" == "cisco-8000" ]; then
config_syncd_cisco_8000
else
echo "Unknown ASIC type $SONIC_ASIC_TYPE"
exit 1
Expand Down

0 comments on commit 969ad94

Please sign in to comment.