[p4]: add libsaithrift in p4 build (#1391)

This commit is contained in:
lguohan 2018-02-14 06:28:25 +08:00 committed by GitHub
parent 46ec35df81
commit 8f52845b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# libsaithrift-dev package
LIBSAITHRIFT_DEV_P4 = libsaithrift-dev_1.0.4_amd64.deb
$(LIBSAITHRIFT_DEV_P4)_SRC_PATH = $(SRC_PATH)/sonic-sairedis/SAI
$(LIBSAITHRIFT_DEV_P4)_DEPENDS += $(LIBTHRIFT) $(LIBTHRIFT_DEV) $(THRIFT_COMPILER) $(P4_SWITCH)
$(LIBSAITHRIFT_DEV_P4)_RDEPENDS += $(LIBTHRIFT) $(P4_SWITCH)
SONIC_DPKG_DEBS += $(LIBSAITHRIFT_DEV_P4)

View File

@ -6,8 +6,9 @@ include $(PLATFORM_PATH)/p4c-bm.mk
include $(PLATFORM_PATH)/p4-bmv.mk
include $(PLATFORM_PATH)/p4-switch.mk
include $(PLATFORM_PATH)/docker-sonic-p4.mk
include $(PLATFORM_PATH)/libsaithrift-dev.mk
SONIC_ALL += $(DOCKER_SONIC_P4)
$(LIBSAIREDIS)_DEPENDS += $(P4_SWITCH)
$(LIBSAIREDIS)_DEPENDS += $(P4_SWITCH) $(LIBSAITHRIFT_DEV_P4)
$(LIBSAIREDIS)_RDEPENDS += $(P4_SWITCH)