Skip to content

Commit

Permalink
Debug dump utility dash objects update (#19440)
Browse files Browse the repository at this point in the history
Why I did it
This PR is required for the changes in sonic-net/sonic-utilities#3387. Adds libdashapi in the image and adds dependency of libdashapi to sonic-utilities

Work item tracking
Microsoft ADO (number only):
How I did it
Changed files/build_templates/sonic_debian_extension.j2 to install libdashapi to the image and changed rules/sonic-utilities.mk to add the dependency
  • Loading branch information
gpunathilell authored Dec 2, 2024
1 parent 56c07d2 commit 6506a6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,12 @@ sudo cp {{platform_api_py3_wheel_path}} $FILESYSTEM_ROOT/$SONIC_PLATFORM_PY3_WHE
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip3 install $SONIC_PLATFORM_PY3_WHEEL_NAME
sudo rm -rf $FILESYSTEM_ROOT/$SONIC_PLATFORM_PY3_WHEEL_NAME


sudo dpkg --root=$FILESYSTEM_ROOT -i $debs_path/libdashapi_*.deb || \
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install -f

sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install xmlstarlet

{% endif %}

{%- if SONIC_ROUTING_STACK == "frr" %}
Expand Down
3 changes: 3 additions & 0 deletions rules/sonic-utilities.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ $(SONIC_UTILITIES_PY3)_DEBS_DEPENDS = $(LIBYANG) \
$(LIBYANG_PY3) \
$(LIBSWSSCOMMON) \
$(PYTHON3_SWSSCOMMON)
ifeq ($(CONFIGURED_PLATFORM),nvidia-bluefield)
$(SONIC_UTILITIES_PY3)_DEBS_DEPENDS += $(LIB_SONIC_DASH_API)
endif
SONIC_PYTHON_WHEELS += $(SONIC_UTILITIES_PY3)

0 comments on commit 6506a6e

Please sign in to comment.