pw_presubmit: Add check for rp2040_binary transition

Change-Id: Ie6de3159296382bcd7077184d5b2d54bd7a3e252
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/218273
Pigweed-Auto-Submit: Taylor Cramer <cramertj@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Taylor Cramer <cramertj@google.com>
This commit is contained in:
Taylor Cramer 2024-06-26 18:25:45 +00:00 committed by CQ Bot Account
parent 0ea6a01ffe
commit 1dbd4a434d

View File

@ -869,6 +869,7 @@ def bazel_build(ctx: PresubmitContext) -> None:
)
# Build upstream Pigweed for the rp2040.
# First using the config.
build_bazel(
ctx,
'build',
@ -881,6 +882,15 @@ def bazel_build(ctx: PresubmitContext) -> None:
# will return an error instead of skipping it.)
'//pw_system:system_example',
)
# Then using the transition.
#
# This ensures that the rp2040_binary rule transition includes all required
# backends.
build_bazel(
ctx,
'build',
'//pw_system:rp2040_system_example',
)
# Build upstream Pigweed for the Discovery board using STM32Cube.
build_bazel(