From f3a6753978d8fd399f426bcf36d491de5590d3a9 Mon Sep 17 00:00:00 2001 From: songqh2022 Date: Thu, 17 Mar 2022 18:45:13 +0800 Subject: [PATCH 1/2] Support for platforms based on Clounix Networks' device --- configure.ac | 1 + syncd/Makefile.am | 4 ++++ syncd/scripts/syncd_init_common.sh | 6 ++++++ 3 files changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 9f274d6c3d..350902dc68 100644 --- a/configure.ac +++ b/configure.ac @@ -15,6 +15,7 @@ AM_PATH_PYTHON3 AM_CONDITIONAL(sonic_asic_platform_barefoot, test x$CONFIGURED_PLATFORM = xbarefoot) AM_CONDITIONAL(sonic_asic_platform_mellanox, test x$CONFIGURED_PLATFORM = xmellanox) +AM_CONDITIONAL(sonic_asic_platform_clounix, test x$CONFIGURED_PLATFORM = xclounix) AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging], diff --git a/syncd/Makefile.am b/syncd/Makefile.am index 1ae9315a35..19efa4a65c 100644 --- a/syncd/Makefile.am +++ b/syncd/Makefile.am @@ -76,6 +76,10 @@ syncd_CPPFLAGS += -DSAI_SUPPORT_UNINIT_DATA_PLANE_ON_REMOVAL libSyncd_a_CPPFLAGS += -DSAI_SUPPORT_UNINIT_DATA_PLANE_ON_REMOVAL endif +if sonic_asic_platform_clounix +syncd_CPPFLAGS += -DSAI_SUPPORT_UNINIT_DATA_PLANE_ON_REMOVAL +libSyncd_a_CPPFLAGS += -DSAI_SUPPORT_UNINIT_DATA_PLANE_ON_REMOVAL +endif libSyncdRequestShutdown_a_SOURCES = \ RequestShutdown.cpp \ RequestShutdownCommandLineOptions.cpp \ diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index 061b094631..73bfc4b5ab 100755 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -197,6 +197,10 @@ config_syncd_vs() CMD_ARGS+=" -p $HWSKU_DIR/sai.profile" } +config_syncd_clounix() +{ + CMD_ARGS+=" -p $HWSKU_DIR/sai.profile" +} config_syncd_innovium() { CMD_ARGS+=" -p $HWSKU_DIR/sai.profile" @@ -235,6 +239,8 @@ config_syncd() config_syncd_nephos elif [ "$SONIC_ASIC_TYPE" == "vs" ]; then config_syncd_vs + elif [ "$SONIC_ASIC_TYPE" == "clounix" ]; then + config_syncd_clounix elif [ "$SONIC_ASIC_TYPE" == "innovium" ]; then config_syncd_innovium elif [ "$SONIC_ASIC_TYPE" == "cisco-8000" ]; then From 01e2e95e542a9aee6584182d7bd00840ee08e9d8 Mon Sep 17 00:00:00 2001 From: songqh2022 <101690279+songqh2022@users.noreply.github.com> Date: Tue, 26 Jul 2022 09:43:35 +0800 Subject: [PATCH 2/2] delete no needed backspace --- configure.ac | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5415219de7..350902dc68 100644 --- a/configure.ac +++ b/configure.ac @@ -13,8 +13,6 @@ AC_HEADER_STDC AM_PATH_PYTHON AM_PATH_PYTHON3 - - AM_CONDITIONAL(sonic_asic_platform_barefoot, test x$CONFIGURED_PLATFORM = xbarefoot) AM_CONDITIONAL(sonic_asic_platform_mellanox, test x$CONFIGURED_PLATFORM = xmellanox) AM_CONDITIONAL(sonic_asic_platform_clounix, test x$CONFIGURED_PLATFORM = xclounix)