Skip to content

Commit

Permalink
[202205][sonic-sairedis] don't try to build python-pysairedis (python…
Browse files Browse the repository at this point in the history
…2) on bullseye (sonic-net#11308)

This PR is a backport of sonic-net#10950 and a fix for it sonic-net#11227

- Why I did it
To not build python2 pysairedis on bullseye

- How I did it
Cherry-picked above PRs from master

- How to verify it
Build

Signed-off-by: Stepan Blyschak <[email protected]>
  • Loading branch information
stepanblyschak authored and skbarista committed Aug 17, 2022
1 parent 746a895 commit 78e4008
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/sairedis.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ $(LIBSAIMETADATA_DBG)_DEPENDS += $(LIBSAIMETADATA)
$(LIBSAIMETADATA_DBG)_RDEPENDS += $(LIBSAIMETADATA)
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DBG)))

ifeq ($(ENABLE_PY2_MODULES), n)
$(LIBSAIREDIS)_BUILD_ENV += 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.
#
Expand Down
4 changes: 4 additions & 0 deletions rules/syncd.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ $(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

0 comments on commit 78e4008

Please sign in to comment.