Skip to content

Commit 508071f

Browse files
committed
Attempt to fix bazel build in same way as pico_flash works with pico_bootrom_headers
1 parent 0c91aab commit 508071f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ alias(
1919
"//src/rp2_common/boot_bootrom_headers:__pkg__",
2020
"//src/rp2_common/hardware_boot_lock:__pkg__",
2121
"//src/rp2_common/pico_flash:__pkg__",
22+
"//src/rp2_common/hardware_rcp:__pkg__",
2223
],
2324
)
2425

src/rp2_common/hardware_rcp/BUILD.bazel

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@ load("//bazel:defs.bzl", "compatible_with_rp2")
22

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

5+
# Picotool needs this (transitively through
6+
# //src/rp2_common/pico_bootrom:pico_bootrom_headers), so we can't strictly
7+
# constrain compatibility.
8+
cc_library(
9+
name = "hardware_rcp_headers",
10+
hdrs = ["include/hardware/rcp.h"],
11+
includes = ["include"],
12+
visibility = ["//src/rp2_common/pico_bootrom:__pkg__"],
13+
deps = [
14+
"//src:pico_platform_internal",
15+
],
16+
)
17+
518
cc_library(
619
name = "hardware_rcp",
720
hdrs = ["include/hardware/rcp.h"],

src/rp2_common/pico_bootrom/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cc_library(
1818
"//src/rp2_common/boot_bootrom_headers",
1919
"//src/rp2_common/hardware_boot_lock:hardware_boot_lock_headers",
2020
"//src/rp2_common/pico_flash:pico_flash_headers",
21+
"//src/rp2_common/hardware_rcp:hardware_rcp_headers",
2122
] + select({
2223
"//bazel/constraint:host": ["//src/host/hardware_sync"],
2324
"//conditions:default": ["//src/rp2_common/hardware_sync"],

0 commit comments

Comments
 (0)