From b730a5f3a0e0a483722317c93537b8b57d91b3f4 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Mon, 11 Nov 2024 11:50:38 -0600 Subject: [PATCH] update bazel build --- src/rp2_common/hardware_flash/BUILD.bazel | 1 + src/rp2_common/hardware_xip_cache/BUILD.bazel | 14 ++++++++++++++ test/kitchen_sink/BUILD.bazel | 1 + 3 files changed, 16 insertions(+) create mode 100644 src/rp2_common/hardware_xip_cache/BUILD.bazel diff --git a/src/rp2_common/hardware_flash/BUILD.bazel b/src/rp2_common/hardware_flash/BUILD.bazel index e443e261c..d50d0c73f 100644 --- a/src/rp2_common/hardware_flash/BUILD.bazel +++ b/src/rp2_common/hardware_flash/BUILD.bazel @@ -11,6 +11,7 @@ cc_library( target_compatible_with = compatible_with_rp2(), deps = [ "//src/rp2_common:hardware_structs", + "//src/rp2_common/hardware_xip_cache", "//src/rp2_common:pico_platform", "//src/rp2_common/pico_bootrom", "//src/rp2_common/pico_multicore", diff --git a/src/rp2_common/hardware_xip_cache/BUILD.bazel b/src/rp2_common/hardware_xip_cache/BUILD.bazel new file mode 100644 index 000000000..df81b8e31 --- /dev/null +++ b/src/rp2_common/hardware_xip_cache/BUILD.bazel @@ -0,0 +1,14 @@ +load("//bazel:defs.bzl", "compatible_with_rp2") + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "hardware_xip_cache", + srcs = ["xip_cache.c"], + hdrs = ["include/hardware/xip_cache.h"], + includes = ["include"], + target_compatible_with = compatible_with_rp2(), + deps = [ + "//src/rp2_common/hardware_sync", + ], +) diff --git a/test/kitchen_sink/BUILD.bazel b/test/kitchen_sink/BUILD.bazel index ec3ea9fcf..9ecbe23e9 100644 --- a/test/kitchen_sink/BUILD.bazel +++ b/test/kitchen_sink/BUILD.bazel @@ -60,6 +60,7 @@ cc_library( "//src/rp2_common/hardware_uart", "//src/rp2_common/hardware_vreg", "//src/rp2_common/hardware_watchdog", + "//src/rp2_common/hardware_xip_cache", "//src/rp2_common/hardware_xosc", "//src/rp2_common/pico_aon_timer", "//src/rp2_common/pico_bootrom",