| # Copyright 2024 The Pigweed Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| # use this file except in compliance with the License. You may obtain a copy of |
| # the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| # License for the specific language governing permissions and limitations under |
| # the License. |
| |
| load("@pigweed//pw_build:merge_flags.bzl", "flags_from_dict") |
| |
| package(default_visibility = ["//visibility:public"]) |
| |
| platform( |
| name = "lm3s6965evb", |
| constraint_values = [ |
| "@pigweed//pw_build/constraints/chipset:lm3s6965evb", |
| "@pigweed//pw_build/constraints/arm:cortex-m3", |
| "@platforms//cpu:armv7-m", |
| "@platforms//os:none", |
| "@rust_crates//:no_std", |
| ], |
| flags = flags_from_dict({ |
| "//lib/unittest:unittest_runner": "//lib/unittest:unittest_runner_cortex_m", |
| "//kernel/sync:spinlock_backend": "//arch/arm_cortex_m:spinlock_backend_cortex_m", |
| "//target:linker_script": "//target/qemu/linker_scripts:qemu_lm3s6965_linker_script", |
| "@pigweed//pw_log/rust:pw_log_backend": "//target/qemu/pw_log_backend_qemu:pw_log_backend", |
| }), |
| ) |
| |
| platform( |
| name = "microbit", |
| constraint_values = [ |
| "@pigweed//pw_build/constraints/chipset:nrf52833", |
| "@pigweed//pw_build/constraints/arm:cortex-m0", |
| "@platforms//cpu:armv6-m", |
| "@platforms//os:none", |
| "@rust_crates//:no_std", |
| ], |
| flags = flags_from_dict({ |
| "//kernel/sync:spinlock_backend": "//arch/arm_cortex_m:spinlock_backend_cortex_m", |
| "//target:linker_script": "//target/qemu/linker_scripts:qemu_nrf51823_linker_script", |
| "@pigweed//pw_log/rust:pw_log_backend": "//target/qemu/pw_log_backend_qemu:pw_log_backend", |
| }), |
| ) |