Skip to content

Commit

Permalink
Enable SAI thrift for Mellanox platform
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii savka committed Jan 12, 2018
1 parent 47aba6f commit 5154229
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion platform/mellanox/docker-ptf-mlnx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ DOCKER_PTF_MLNX = docker-ptf-mlnx.gz
$(DOCKER_PTF_MLNX)_PATH = $(DOCKERS_PATH)/docker-ptf-saithrift
$(DOCKER_PTF_MLNX)_DEPENDS += $(PYTHON_SAITHRIFT_MLNX)
$(DOCKER_PTF_MLNX)_LOAD_DOCKERS += $(DOCKER_PTF)
#SONIC_DOCKER_IMAGES += $(DOCKER_PTF_MLNX)
SONIC_DOCKER_IMAGES += $(DOCKER_PTF_MLNX)
1 change: 0 additions & 1 deletion platform/mellanox/libsaithrift-dev.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# libsaithrift-dev package

LIBSAITHRIFT_DEV_MLNX = libsaithrift-dev_1.0.4_amd64.deb
$(LIBSAITHRIFT_DEV_MLNX)_SRC_PATH = $(SRC_PATH)/sonic-sairedis/SAI
$(LIBSAITHRIFT_DEV_MLNX)_DEPENDS += $(LIBTHRIFT) $(LIBTHRIFT_DEV) $(THRIFT_COMPILER) $(MLNX_SAI) $(MLNX_SAI_DEV)
Expand Down
6 changes: 5 additions & 1 deletion platform/mellanox/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ SONIC_ALL += $(SONIC_ONE_IMAGE) \
$(DOCKER_FPM)

# Inject mlnx sai into sairedis
$(LIBSAIREDIS)_DEPENDS += $(MLNX_SAI) #$(LIBSAITHRIFT_DEV_MLNX)
$(LIBSAIREDIS)_DEPENDS += $(MLNX_SAI)

ifeq ($(ENABLE_SYNCD_RPC),y)
$(LIBSAIREDIS)_DEPENDS += $(LIBSAITHRIFT_DEV_MLNX)
endif

# Runtime dependency on mlnx sai is set only for syncd
$(SYNCD)_RDEPENDS += $(MLNX_SAI)

0 comments on commit 5154229

Please sign in to comment.