04a6031b2d
This reverts commit e0927e28af
.
Why I did it
Reverts #15720
It breaks build for target/debs/bullseye/syncd_1.0.0_amd64.deb
make[2]: Entering directory '/sonic/src/sonic-sairedis'
dh_install
# Note: escape with an extra symbol
if [ -f debian/syncd-rpc/usr/bin/syncd_init_common.sh ] ; then
/bin/sh: 1: Syntax error: end of file unexpected (expecting "fi")
make[2]: *** [debian/rules:65: override_dh_install] Error 2
make[2]: Leaving directory '/sonic/src/sonic-sairedis'
make[1]: *** [debian/rules:51: binary] Error 2
make[1]: Leaving directory '/sonic/src/sonic-sairedis'
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
Work item tracking
Microsoft ADO (number only): 24691535
How I did it
How to verify it
41 lines
1.2 KiB
Makefile
41 lines
1.2 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
|
|
$(SYNCD)_DEPENDS += $(LIBSWSSCOMMON_DEV) $(LIBTHRIFT_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)_DEB_BUILD_PROFILES += nopython2
|
|
endif
|
|
|
|
endif
|