bazel: Update formatting
Bug: 340637744
Change-Id: I253464b00aa9b00305c0bde4095c269d6df4f46e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/examples/+/210042
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Pigweed-Auto-Submit: Ted Pudlik <tpudlik@google.com>
diff --git a/examples/01_blinky/BUILD.bazel b/examples/01_blinky/BUILD.bazel
index 03ef75d..3afe70f 100644
--- a/examples/01_blinky/BUILD.bazel
+++ b/examples/01_blinky/BUILD.bazel
@@ -19,9 +19,9 @@
name = "blinky",
srcs = ["main.cc"],
malloc = select({
- "//conditions:default": "@bazel_tools//tools/cpp:malloc",
"@pico-sdk//bazel/constraint:rp2": "@pigweed//pw_malloc",
"@platforms//cpu:armv7e-m": "@pigweed//pw_malloc",
+ "//conditions:default": "@bazel_tools//tools/cpp:malloc",
}),
deps = [
"//libraries/pw_board_led",
@@ -36,9 +36,6 @@
"@pigweed//pw_system:target_hooks",
"@pigweed//pw_system:work_queue",
] + select({
- "//conditions:default": [
- "@pigweed//targets/host_device_simulator:boot",
- ],
"@pico-sdk//bazel/constraint:rp2": [
"@pico-sdk//src/common/pico_stdlib:pico_stdlib",
"@pigweed//pw_tokenizer:linker_script",
@@ -51,6 +48,9 @@
"@pigweed//pw_toolchain/arm_gcc:arm_none_eabi_gcc_support",
"@pigweed//targets/stm32f429i_disc1_stm32cube:pre_init",
],
+ "//conditions:default": [
+ "@pigweed//targets/host_device_simulator:boot",
+ ],
}),
)
diff --git a/libraries/pw_board_led/BUILD.bazel b/libraries/pw_board_led/BUILD.bazel
index d7639f7..ac8d824 100644
--- a/libraries/pw_board_led/BUILD.bazel
+++ b/libraries/pw_board_led/BUILD.bazel
@@ -31,8 +31,8 @@
name = "pw_board_led_backend",
actual = select({
"//libraries/pw_board_led_host:backend_constraint_value": "//libraries/pw_board_led_host",
- "//libraries/pw_board_led_stm32f429i_disc1:backend_constraint_value": "//libraries/pw_board_led_stm32f429i_disc1",
"//libraries/pw_board_led_rp2040:backend_constraint_value": "//libraries/pw_board_led_rp2040",
+ "//libraries/pw_board_led_stm32f429i_disc1:backend_constraint_value": "//libraries/pw_board_led_stm32f429i_disc1",
"//conditions:default": ":unspecified_backend",
}),
)
diff --git a/targets/transition.bzl b/targets/transition.bzl
index ec6e9c2..bdceaf9 100644
--- a/targets/transition.bzl
+++ b/targets/transition.bzl
@@ -25,8 +25,8 @@
"//command_line_option:copt": ["-DSTM32CUBE_HEADER=\"stm32f4xx.h\"", "-DSTM32F429xx"],
"//command_line_option:platforms": "//targets/stm32f429i_disc1_stm32cube:platform",
"@hal_driver//:hal_config": "@pigweed//targets/stm32f429i_disc1_stm32cube:hal_config",
- "@pigweed//pw_log:backend_impl": "@pigweed//pw_log_tokenized:impl",
"@pigweed//pw_log:backend": "@pigweed//pw_log_tokenized",
+ "@pigweed//pw_log:backend_impl": "@pigweed//pw_log_tokenized:impl",
"@pigweed//pw_log_tokenized:handler_backend": "@pigweed//pw_system:log_backend",
}
@@ -70,8 +70,8 @@
return {
"//command_line_option:platforms": "//targets/rp2040:platform",
- "@pigweed//pw_log:backend_impl": "@pigweed//pw_log_tokenized:impl",
"@pigweed//pw_log:backend": "@pigweed//pw_log_tokenized",
+ "@pigweed//pw_log:backend_impl": "@pigweed//pw_log_tokenized:impl",
"@pigweed//pw_log_tokenized:handler_backend": "@pigweed//pw_system:log_backend",
}