Skip to content

Commit ed1e025

Browse files
committed
Fix for new bazel checks
1 parent cc3163d commit ed1e025

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/rp2_common/pico_standard_link/pico_psram_region.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Utilities for creating psram regions."""
2+
13
load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "use_cpp_toolchain")
24
load("@rules_cc//cc/common:cc_common.bzl", "cc_common")
35
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

test/kitchen_sink/BUILD.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,12 @@ cc_binary(
273273
name = "kitchen_sink_psram_actual",
274274
testonly = True,
275275
srcs = ["kitchen_sink.c"],
276-
tags = ["manual"], # Built via kitchen_sink_psram
277-
deps = [":kitchen_sink_common"],
278276
defines = [
279277
"PICO_AUTO_DETECT_PSRAM=1",
280278
'PICO_PSRAM_SIZE_BYTES="(8 * 1024 * 1024)"',
281-
]
279+
],
280+
tags = ["manual"], # Built via kitchen_sink_psram
281+
deps = [":kitchen_sink_common"],
282282
)
283283

284284
generated_pico_psram_region(
@@ -288,6 +288,9 @@ generated_pico_psram_region(
288288

289289
cc_library(
290290
name = "kitchen_sink_psram_linker_script",
291+
# The order of the linker scripts below is important.
292+
# Prevent buildifier from reordering them.
293+
# buildifier: leave-alone
291294
deps = [
292295
"//test/kitchen_sink:8M_psram_region",
293296
"//src/rp2_common/pico_standard_link:default_linker_script",

0 commit comments

Comments
 (0)