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
56 lines
2.3 KiB
Makefile
56 lines
2.3 KiB
Makefile
# sairedis package
|
|
|
|
LIBSAIREDIS_VERSION = 1.0.0
|
|
LIBSAIREDIS_NAME = libsairedis
|
|
|
|
LIBSAIREDIS = $(LIBSAIREDIS_NAME)_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBSAIREDIS)_DPKG_TARGET = binary-sairedis
|
|
$(LIBSAIREDIS)_SRC_PATH = $(SRC_PATH)/sonic-sairedis
|
|
$(LIBSAIREDIS)_VERSION = $(LIBSAIREDIS_VERSION)
|
|
$(LIBSAIREDIS)_NAME = $(LIBSAIREDIS_NAME)
|
|
$(LIBSAIREDIS)_DEPENDS += $(LIBSWSSCOMMON_DEV)
|
|
$(LIBSAIREDIS)_RDEPENDS += $(LIBSWSSCOMMON)
|
|
$(LIBSAIREDIS)_DEB_BUILD_OPTIONS = nocheck
|
|
SONIC_DPKG_DEBS += $(LIBSAIREDIS)
|
|
|
|
LIBSAIREDIS_DEV = $(LIBSAIREDIS_NAME)-dev_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIREDIS_DEV)))
|
|
|
|
LIBSAIVS = libsaivs_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIVS)))
|
|
|
|
LIBSAIVS_DEV = libsaivs-dev_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIVS_DEV)))
|
|
$(LIBSAIVS_DEV)_DEPENDS += $(LIBSAIVS)
|
|
|
|
LIBSAIMETADATA = libsaimetadata_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA)))
|
|
|
|
LIBSAIMETADATA_DEV = libsaimetadata-dev_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBSAIMETADATA_DEV)_DEPENDS += $(LIBSAIMETADATA)
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DEV)))
|
|
|
|
LIBSAIREDIS_DBG = $(LIBSAIREDIS_NAME)-dbg_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBSAIREDIS_DBG)_DEPENDS += $(LIBSAIREDIS)
|
|
$(LIBSAIREDIS_DBG)_RDEPENDS += $(LIBSAIREDIS)
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIREDIS_DBG)))
|
|
|
|
LIBSAIVS_DBG = libsaivs-dbg_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBSAIVS_DBG)_DEPENDS += $(LIBSAIVS)
|
|
$(LIBSAIVS_DBG)_RDEPENDS += $(LIBSAIVS)
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIVS_DBG)))
|
|
|
|
LIBSAIMETADATA_DBG = libsaimetadata-dbg_$(LIBSAIREDIS_VERSION)_$(CONFIGURED_ARCH).deb
|
|
$(LIBSAIMETADATA_DBG)_DEPENDS += $(LIBSAIMETADATA)
|
|
$(LIBSAIMETADATA_DBG)_RDEPENDS += $(LIBSAIMETADATA)
|
|
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DBG)))
|
|
|
|
ifeq ($(ENABLE_PY2_MODULES), n)
|
|
$(LIBSAIREDIS)_DEB_BUILD_PROFILES += nopython2
|
|
endif
|
|
|
|
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
|
# are archived into debug one image to facilitate debugging.
|
|
#
|
|
DBG_SRC_ARCHIVE += sonic-sairedis
|