Skip to content

[Mellanox] Change NVIDIA SDK build to cmake method#27

Closed
dprital wants to merge 1 commit intomasterfrom
master_migrate_sdk_build_to_cmake
Closed

[Mellanox] Change NVIDIA SDK build to cmake method#27
dprital wants to merge 1 commit intomasterfrom
master_migrate_sdk_build_to_cmake

Conversation

@dprital
Copy link
Copy Markdown
Owner

@dprital dprital commented Mar 17, 2024

Why I did it

Up to now, building Mellanox SDK debian packages was done by "autotools" method.
Lately, Mellanox SDK team added the support to build by "cmake" method.
The benefit of using "cmake" is with decrease time of SDK build as "cmake" make it faster then "auto build".

When moving to "cmake" method, all SDK debians:

  • applibs
  • sx-complib
  • sx-example
  • sx-gen-utils
  • sx-scew
  • sxd-libs
  • python-sdk-api
  • sx-acl-helper
  • wjh-libs
  • sx-hash-calc
  • sx-obj-desc-lib
  • sxd-libs

will be replaced by single debian - sys_sdk.

Work item tracking
  • Microsoft ADO (number only):

How I did it

  • Update cmake version on sonic slave dockers (bookworm and bullseye)
  • Change SDK Makefiles, delete all Makefiles of removed debians and add new Makefile for building sys_sdk.
  • Change sdk.mk and sdk.dep acordingly.
  • sx-kernel package was remain since it is consumed by the host as well and I didn't want to consume sys_sdk in host.

How to verify it

  • Enter syncd docker and verify the list of SDK packages are sx-kernel and sys-sdk only
  • Run regression tests and verify there is no degradation
  • Install the debian that include dbg-symbols and verify there are debug symbols by setting relevant breakpoints
  • Test the build time when using "cmake" for building SDK packages, compare to "auto build"

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Comment on lines 427 to 428
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why need libnl-genl-3-dev?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not required. Verified it and removed. Also from "bullseye" slave docker

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty line

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was removed

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix comment indent

Copy link
Copy Markdown
Owner Author

@dprital dprital Mar 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is at the same place as previous SDK make files. Right above the treatment to get the sources so I don't see any issue with it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why now new dependency needed?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified that this is redundant so it was removed

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it account for SONIC_DEBUGGING_ON/SONIC_PROFILING_ON?

@dprital dprital requested a review from stepanblyschak March 27, 2024 12:06
@dprital dprital force-pushed the master_migrate_sdk_build_to_cmake branch from 59d4baf to f469e92 Compare July 29, 2024 18:23
@dprital dprital requested a review from dgsudharsan as a code owner July 29, 2024 18:23
@dprital dprital closed this Jul 29, 2024
@dprital dprital reopened this Jul 29, 2024
@dprital dprital requested a review from stepanblyschak July 30, 2024 14:29
@dprital dprital force-pushed the master_migrate_sdk_build_to_cmake branch from c5f7fc6 to c775e40 Compare August 4, 2024 11:39
@dprital dprital closed this Aug 4, 2024
dprital pushed a commit that referenced this pull request Sep 5, 2024
…tically (sonic-net#20083)

#### Why I did it
src/sonic-dash-api
```
* 4919d9e - (HEAD -> master, origin/master, origin/HEAD) Allow `underlay_sip` to coexist with `vnet` in Route table (#27) (4 hours ago) [Lawrence Lee]
```
#### How I did it
#### How to verify it
#### Description for the changelog
dprital pushed a commit that referenced this pull request Aug 7, 2025
Line #27 self.display_name = self.sensor_data should be self.display_name = self.sensor_obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants