-
Notifications
You must be signed in to change notification settings - Fork 2
Add Argus library for ride height sensor #98
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,18 @@ use_repo(openocd, "openocd") | |
| dfu = use_extension("//tools/dfu:dfu.bzl", "dfu") | ||
| use_repo(dfu, "dfu") | ||
|
|
||
| # AFBR-S50 API Library | ||
| git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | ||
|
|
||
| git_repository( | ||
| name = "afbr_s50_lib", | ||
| remote = "https://github.com/Broadcom/AFBR-S50-API.git", | ||
| commit = "68b16693bedae0704b49edcfa2a79e82e5520ae3", | ||
| shallow_since = "2024-01-01", | ||
| build_file = "//drivers:afbr-s50/afbr-s50.BUILD", | ||
| ) | ||
|
Comment on lines
+70
to
+79
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with how other external dependencies like |
||
|
|
||
|
|
||
| # Hermetic Rust Toolchain | ||
| # rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") | ||
| # rust.toolchain( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| load("@rules_cc//cc:defs.bzl", "cc_library") | ||
|
|
||
| cc_library( | ||
| name = "afbr_s50_lib", | ||
|
|
||
| srcs = glob( | ||
| ["AFBR-S50/Lib/**/*.a"], | ||
| allow_empty = True | ||
| ), | ||
|
|
||
| hdrs = glob( | ||
| ["AFBR-S50/Include/**/*.h"], | ||
| allow_empty = True | ||
| ), | ||
|
|
||
| includes = ["AFBR-S50/Include"], | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
Comment on lines
+3
to
+18
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This
Here is a suggested replacement that addresses these points: |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filename
afbr-s50.BUILDand its location are unconventional. Standard Bazel practice is to name build filesBUILDorBUILD.bazeland place them in the directory that represents the package. I'd suggest renamingdrivers/afbr-s50/afbr-s50.BUILDtodrivers/afbr-s50/BUILD.bazeland updating thisbuild_fileattribute to//drivers/afbr-s50:BUILD.bazel. This will make the project structure more intuitive and align with Bazel conventions.