Skip to content

Commit

Permalink
Attempt to fix bazel build in same way as pico_flash works with pico_…
Browse files Browse the repository at this point in the history
…bootrom_headers
  • Loading branch information
will-v-pi committed Oct 15, 2024
1 parent 0c91aab commit 508071f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ alias(
"//src/rp2_common/boot_bootrom_headers:__pkg__",
"//src/rp2_common/hardware_boot_lock:__pkg__",
"//src/rp2_common/pico_flash:__pkg__",
"//src/rp2_common/hardware_rcp:__pkg__",
],
)

Expand Down
13 changes: 13 additions & 0 deletions src/rp2_common/hardware_rcp/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@ load("//bazel:defs.bzl", "compatible_with_rp2")

package(default_visibility = ["//visibility:public"])

# Picotool needs this (transitively through
# //src/rp2_common/pico_bootrom:pico_bootrom_headers), so we can't strictly
# constrain compatibility.
cc_library(
name = "hardware_rcp_headers",
hdrs = ["include/hardware/rcp.h"],
includes = ["include"],
visibility = ["//src/rp2_common/pico_bootrom:__pkg__"],
deps = [
"//src:pico_platform_internal",
],
)

cc_library(
name = "hardware_rcp",
hdrs = ["include/hardware/rcp.h"],
Expand Down
1 change: 1 addition & 0 deletions src/rp2_common/pico_bootrom/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cc_library(
"//src/rp2_common/boot_bootrom_headers",
"//src/rp2_common/hardware_boot_lock:hardware_boot_lock_headers",
"//src/rp2_common/pico_flash:pico_flash_headers",
"//src/rp2_common/hardware_rcp:hardware_rcp_headers",
] + select({
"//bazel/constraint:host": ["//src/host/hardware_sync"],
"//conditions:default": ["//src/rp2_common/hardware_sync"],
Expand Down

0 comments on commit 508071f

Please sign in to comment.