Skip to content

Commit

Permalink
bazel: Skip license collection for now
Browse files Browse the repository at this point in the history
Change-Id: I9fe6efe8c9a9e08de88b1ed8c2737a7ee5ae226a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/234921
Commit-Queue: Ben Lawson <benlawson@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
  • Loading branch information
Jerry Belton authored and CQ Bot Account committed Sep 10, 2024
1 parent bd41046 commit 3ddcea6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pw_bluetooth_sapphire/fuchsia/bt_host/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ package(
default_visibility = ["//pw_bluetooth_sapphire/fuchsia:__pkg__"],
)

exports_files(["README.fuchsia.md"])
exports_files([
"README.fuchsia.md",
"licenses/bt_host_x64_licenses.spdx.json",
"licenses/bt_host_arm64_licenses.spdx.json",
])

fuchsia_cc_binary(
name = "hello_world",
Expand Down Expand Up @@ -70,6 +74,7 @@ fuchsia_cc_test(
srcs = ["hello_gtest.cc"],
# TODO: b/310957361 - gtest not supported on device
target_compatible_with = incompatible_with_mcu(),
visibility = ["//visibility:public"],
deps = [
"@com_google_googletest//:gtest_main",
"@fuchsia_sdk//pkg/fdio",
Expand Down Expand Up @@ -147,7 +152,7 @@ fuchsia_cipd_releases(
cipd_prefix = "fuchsia/prebuilt/bt-host",
extra_content = {
":README.fuchsia.md": "README.fuchsia",
":bt_host_x64_licenses.spdx.json": "licenses.spdx.json",
":licenses/bt_host_x64_licenses.spdx.json": "licenses.spdx.json",
},
pkg = ":pkg.x64",
# TODO: b/354711360 - fuchsia_cipd_releases appears to be misconfigured
Expand All @@ -160,7 +165,7 @@ fuchsia_cipd_releases(
cipd_prefix = "fuchsia/prebuilt/bt-host",
extra_content = {
":README.fuchsia.md": "README.fuchsia",
":bt_host_arm64_licenses.spdx.json": "licenses.spdx.json",
":licenses/bt_host_arm64_licenses.spdx.json": "licenses.spdx.json",
},
pkg = ":pkg.arm64",
# TODO: b/354711360 - fuchsia_cipd_releases appears to be misconfigured
Expand Down
3 changes: 3 additions & 0 deletions pw_bluetooth_sapphire/fuchsia/bt_host/licenses/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Currently, the Fuchsia Bazel SDK requires all dependencies to define a `license` target from the `@rules_license` repository. Some of the dependencies for this project don't yet do that, which causes the build to fail.

These static license files will be used until either the downstream dependencies are updated or the Fuchsia Bazel SDK becomes more flexible to support both license definition types. More info in b/365825622.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 3ddcea6

Please sign in to comment.