Skip to content

Commit

Permalink
makefile : Introduced Cavium platform (sonic-net#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyachy authored and stcheng committed Aug 23, 2016
1 parent b60a1c1 commit 74fa427
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ AC_ARG_WITH(sai,
[case "${withval}" in
bcm) sai=bcm ;;
mlnx) sai=mlnx ;;
cavm) sai=cavm ;;
*) AC_MSG_ERROR(bad value ${withval} for --with-sai) ;;
esac])
AM_CONDITIONAL(SAIBCM, test x$sai = xbcm)
AM_CONDITIONAL(SAIMLNX, test x$sai = xmlnx)
AM_CONDITIONAL(SAICAVM, test x$sai = xcavm)

AC_ARG_ENABLE(rpcserver,
[ --enable-rpcserver Compile with thrift rpcserver included],
Expand Down
4 changes: 4 additions & 0 deletions syncd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if SAIMLNX
SAIFLAGS = -DMLNXSAI
endif

if SAICAVM
SAIFLAGS = -DCAVMSAI
endif

syncd_SOURCES = syncd.cpp \
syncd_init.cpp \
syncd_reinit.cpp \
Expand Down
2 changes: 2 additions & 0 deletions syncd/syncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ void exit_and_notify(int status)
exit(status);
}

#ifdef BRCMSAI
void sai_diag_shell()
{
SWSS_LOG_ENTER();
Expand All @@ -60,6 +61,7 @@ void sai_diag_shell()
sleep(1);
}
}
#endif /* BRCMSAI */

sai_object_id_t redis_create_virtual_object_id(
_In_ sai_object_type_t object_type)
Expand Down

0 comments on commit 74fa427

Please sign in to comment.