blob: 4f288dd5917c8b422a9f816ca53d6b1b126e0209 [file] [log] [blame]
load("//bazel:defs.bzl", "compatible_with_rp2")
package(default_visibility = ["//visibility:public"])
# Picotool needs this, so we can't strictly constrain compatibility.
cc_library(
name = "hardware_boot_lock_headers",
hdrs = ["include/hardware/boot_lock.h"],
includes = ["include"],
tags = ["manual"],
visibility = ["//src/rp2_common/pico_bootrom:__pkg__"],
)
cc_library(
name = "hardware_boot_lock",
srcs = ["boot_lock.c"],
hdrs = ["include/hardware/boot_lock.h"],
includes = ["include"],
target_compatible_with = compatible_with_rp2(),
deps = [
"//src/common/pico_base_headers",
"//src/common/pico_sync",
"//src/rp2_common:hardware_structs",
"//src/rp2_common/pico_runtime",
"//src/rp2_common/pico_runtime_init",
],
)