0eb82ab217
Make syncd rpc docker which supports sai-ptf v2 local bulild the target NOSTRETCH=y NOJESSIE=y make configure PLATFORM=vs NOSTRETCH=y NOJESSIE=y NOBULLSEYE=y SAITHRIFT_V2=y make target/docker-ptf-sai.gz NOSTRETCH=y NOJESSIE=y make configure PLATFORM=vs NOSTRETCH=y NOJESSIE=y NOBULLSEYE=y make target/docker-ptf.gz NOSTRETCH=y NOJESSIE=y make configure PLATFORM=broadcom NOSTRETCH=y NOJESSIE=y ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y make target/docker-syncd-brcm-rpcv2.gz NOSTRETCH=y NOJESSIE=y ENABLE_SYNCD_RPC=y SAITHRIFT_V2=y make target/docker-saiserverv2-brcm.gz Test done: #12619 NOSTRETCH=y NOJESSIE=y make configure PLATFORM=broadcom NOSTRETCH=y NOJESSIE=y ENABLE_SYNCD_RPC=y make target/docker-syncd-brcm-rpc.gz NOSTRETCH=y NOJESSIE=y ENABLE_SYNCD_RPC=y make target/docker-saiserver-brcm.gz Signed-off-by: richardyu-ms <richard.yu@microsoft.com> Signed-off-by: richardyu-ms <richard.yu@microsoft.com>
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# only used for non-vs platforms
|
|
|
|
ifneq ($(CONFIGURED_PLATFORM),vs)
|
|
|
|
SYNCD = syncd_1.0.0_$(CONFIGURED_ARCH).deb
|
|
$(SYNCD)_RDEPENDS += $(LIBSAIREDIS) $(LIBSAIMETADATA)
|
|
$(SYNCD)_DPKG_TARGET = binary-syncd
|
|
$(SYNCD)_SRC_PATH = $(SRC_PATH)/sonic-sairedis
|
|
$(SYNCD)_DEPENDS += $(LIBSWSSCOMMON_DEV) $(LIBSAIREDIS)
|
|
$(SYNCD)_RDEPENDS += $(LIBSWSSCOMMON)
|
|
$(SYNCD)_DEB_BUILD_OPTIONS = nocheck
|
|
SONIC_DPKG_DEBS += $(SYNCD)
|
|
|
|
ifeq ($(ENABLE_SYNCD_RPC),y)
|
|
SYNCD_RPC = syncd-rpc_1.0.0_$(CONFIGURED_ARCH).deb
|
|
$(SYNCD_RPC)_RDEPENDS += $(LIBSAIREDIS) $(LIBSAIMETADATA)
|
|
$(eval $(call add_derived_package,$(SYNCD),$(SYNCD_RPC)))
|
|
|
|
# Inject libthrift build dependency for RPC build
|
|
# Support two different versions of thrift
|
|
ifeq ($(SAITHRIFT_V2),y)
|
|
$(SYNCD)_DEPENDS += $(LIBTHRIFT_0_14_1_DEV)
|
|
else
|
|
$(SYNCD)_DEPENDS += $(LIBTHRIFT_DEV)
|
|
endif
|
|
$(SYNCD)_DEPENDS += $(LIBSWSSCOMMON_DEV)
|
|
$(SYNCD)_DPKG_TARGET = binary-syncd-rpc
|
|
endif
|
|
|
|
SYNCD_DBG = syncd-dbg_1.0.0_$(CONFIGURED_ARCH).deb
|
|
$(SYNCD_DBG)_DEPENDS += $(SYNCD)
|
|
$(SYNCD_DBG)_RDEPENDS += $(SYNCD)
|
|
$(eval $(call add_derived_package,$(SYNCD),$(SYNCD_DBG)))
|
|
|
|
ifeq ($(ENABLE_SYNCD_RPC),y)
|
|
SYNCD_RPC_DBG = syncd-rpc-dbg_1.0.0_$(CONFIGURED_ARCH).deb
|
|
$(SYNCD_RPC_DBG)_DEPENDS += $(SYNCD_RPC)
|
|
$(SYNCD_RPC_DBG)_RDEPENDS += $(SYNCD_RPC)
|
|
$(eval $(call add_derived_package,$(SYNCD),$(SYNCD_RPC_DBG)))
|
|
endif
|
|
|
|
ifeq ($(ENABLE_PY2_MODULES), n)
|
|
$(SYNCD)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2
|
|
endif
|
|
|
|
endif
|