From 3d1d7aec46d5129b8c1c0ed36e8435d78109b95a Mon Sep 17 00:00:00 2001 From: Keir Mierle Date: Thu, 23 Jan 2025 18:00:04 -0800 Subject: [PATCH] pw_spi: Enable Bazel layering check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: 391639868 Change-Id: I4a7e77cb49f185a94d61aa5dbdce81bdd8ba02c6 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/262113 Commit-Queue: Keir Mierle Docs-Not-Needed: Keir Mierle Lint: Lint 🤖 Reviewed-by: Ted Pudlik --- pw_spi/BUILD.bazel | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pw_spi/BUILD.bazel b/pw_spi/BUILD.bazel index 608c56f8a..7562f28a7 100644 --- a/pw_spi/BUILD.bazel +++ b/pw_spi/BUILD.bazel @@ -18,7 +18,6 @@ load("//pw_unit_test:pw_cc_test.bzl", "pw_cc_test") package( default_visibility = ["//visibility:public"], - features = ["-layering_check"], ) licenses(["notice"]) @@ -86,7 +85,9 @@ cc_library( ":chip_selector", ":initiator", "//pw_assert", + "//pw_bytes", "//pw_containers", + "//pw_containers:algorithm", "//pw_containers:to_array", "//pw_unit_test", ], @@ -100,7 +101,8 @@ pw_cc_test( deps = [ ":initiator_mock", "//pw_bytes", - "//pw_containers", + "//pw_containers:algorithm", + "//pw_span", "//pw_unit_test", ], ) @@ -127,8 +129,12 @@ pw_cc_test( "spi_test.cc", ], deps = [ + ":chip_selector", ":device", + ":initiator", ":responder", + "//pw_status", + "//pw_sync:borrow", "//pw_sync:mutex", "//pw_unit_test", ],