aboutsummaryrefslogtreecommitdiff
path: root/pw_build/platforms/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'pw_build/platforms/BUILD.bazel')
-rw-r--r--pw_build/platforms/BUILD.bazel39
1 files changed, 38 insertions, 1 deletions
diff --git a/pw_build/platforms/BUILD.bazel b/pw_build/platforms/BUILD.bazel
index 7bbc6a3cf..554957766 100644
--- a/pw_build/platforms/BUILD.bazel
+++ b/pw_build/platforms/BUILD.bazel
@@ -71,7 +71,7 @@ platform(
platform(
name = "cortex_m4_fpu",
constraint_values = ["@pigweed_config//:target_rtos"],
- parents = ["@bazel_embedded//platforms:cortex_m4"],
+ parents = ["@bazel_embedded//platforms:cortex_m4_fpu"],
)
platform(
@@ -99,9 +99,46 @@ platform(
parents = [":cortex_m3"],
)
+platform(
+ name = "nrf52833",
+ constraint_values = ["//pw_build/constraints/chipset:nrf52833"],
+ parents = [":cortex_m0"],
+)
+
# --- Boards ---
platform(
name = "stm32f429i-disc1",
constraint_values = ["//pw_build/constraints/board:stm32f429i-disc1"],
parents = [":stm32f429"],
)
+
+platform(
+ name = "microbit",
+ constraint_values = ["//pw_build/constraints/board:microbit"],
+ parents = [":nrf52833"],
+)
+
+# --- Test platforms ---
+
+# This is a platform for compilation testing of freertos backends. This is not
+# a complete specification of any real target platform.
+platform(
+ name = "testonly_freertos",
+ constraint_values = [
+ # Use FreeRTOS backends.
+ "//pw_build/constraints/rtos:freertos",
+ # Use the FreeRTOS config file for stm32f429i_disc1_stm32cube.
+ "//targets/stm32f429i_disc1_stm32cube:freertos_config_cv",
+ # Use the ARM_CM4F port of FreeRTOS.
+ "@freertos//:port_ARM_CM4F",
+ # Specify this chipset to use the baremetal pw_sys_io backend (because
+ # the default pw_sys_io_stdio backend is not compatible with FreeRTOS).
+ "//pw_build/constraints/chipset:stm32f429",
+ # os:none means, we're not building for any host platform (Windows,
+ # Linux, or Mac). The pw_sys_io_baremetal_stm32f429 backend is only
+ # compatible with os:none.
+ "@platforms//os:none",
+ ],
+ # Inherit from cortex_m4_fpu to use the appropriate Arm toolchain.
+ parents = [":cortex_m4_fpu"],
+)