Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul cmake interface to Tofino SDE #307

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Overhaul cmake interface to Tofino SDE #307

merged 2 commits into from
Oct 3, 2023

Conversation

ffoulkes
Copy link
Contributor

  • Replace the tofino-driver.cmake include file with FindTofinoDriver.cmake, a find-module that allows us to use find_package(TofinoDriver) to define namespaced cmake targets for the Tofino SDE.

  • Define an add_tofino_target_libraries() function that provides an abstract interface to set the properties a target needs in order to compile and link with the Tofino SDE.

  • Update krnlmon submodule reference.

Copy link
Collaborator

@nupuruttarwar nupuruttarwar left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@5abeel 5abeel left a comment

Choose a reason for hiding this comment

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

LGTM

- Replace the tofino-driver.cmake include file with
  FindTofinoDriver.cmake, a find-module that allows us to use
  `find_package(TofinoDriver)` to define namespaced cmake targets
  for the Tofino SDE.

- Define an `add_tofino_target_libraries()` function that
  provides an abstract interface to set the properties a
  target needs in order to compile and link with the Tofino SDE.

- Update krnlmon submodule reference.

Signed-off-by: Derek G Foster <[email protected]>
Signed-off-by: Derek G Foster <[email protected]>
@ffoulkes ffoulkes merged commit 6e9a62f into main Oct 3, 2023
3 of 4 checks passed
@ffoulkes ffoulkes deleted the tofino-driver branch October 3, 2023 19:05
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.

3 participants