• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7#     https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14package(default_visibility = ["//visibility:public"])
15
16# --- OS's ---
17platform(
18    name = "freertos",
19    constraint_values = [
20        "//pw_build/constraints/rtos:freertos",
21        "@platforms//os:none",
22    ],
23)
24
25platform(
26    name = "embos",
27    constraint_values = [
28        "//pw_build/constraints/rtos:embos",
29        "@platforms//os:none",
30    ],
31)
32
33platform(
34    name = "threadx",
35    constraint_values = [
36        "//pw_build/constraints/rtos:threadx",
37        "@platforms//os:none",
38    ],
39)
40
41platform(
42    name = "none",
43    constraint_values = ["@platforms//os:none"],
44)
45
46# --- CPU's ---
47platform(
48    name = "cortex_m0",
49    constraint_values = ["@pigweed_config//:target_rtos"],
50    parents = ["@bazel_embedded//platforms:cortex_m0"],
51)
52
53platform(
54    name = "cortex_m1",
55    constraint_values = ["@pigweed_config//:target_rtos"],
56    parents = ["@bazel_embedded//platforms:cortex_m1"],
57)
58
59platform(
60    name = "cortex_m3",
61    constraint_values = ["@pigweed_config//:target_rtos"],
62    parents = ["@bazel_embedded//platforms:cortex_m3"],
63)
64
65platform(
66    name = "cortex_m4",
67    constraint_values = ["@pigweed_config//:target_rtos"],
68    parents = ["@bazel_embedded//platforms:cortex_m4"],
69)
70
71platform(
72    name = "cortex_m4_fpu",
73    constraint_values = ["@pigweed_config//:target_rtos"],
74    parents = ["@bazel_embedded//platforms:cortex_m4"],
75)
76
77platform(
78    name = "cortex_m7",
79    constraint_values = ["@pigweed_config//:target_rtos"],
80    parents = ["@bazel_embedded//platforms:cortex_m7"],
81)
82
83platform(
84    name = "cortex_m7_fpu",
85    constraint_values = ["@pigweed_config//:target_rtos"],
86    parents = ["@bazel_embedded//platforms:cortex_m7_fpu"],
87)
88
89# --- Chipsets ---
90platform(
91    name = "stm32f429",
92    constraint_values = ["//pw_build/constraints/chipset:stm32f429"],
93    parents = [":cortex_m4"],
94)
95
96platform(
97    name = "lm3s6965evb",
98    constraint_values = ["//pw_build/constraints/chipset:lm3s6965evb"],
99    parents = [":cortex_m3"],
100)
101
102# --- Boards ---
103platform(
104    name = "stm32f429i-disc1",
105    constraint_values = ["//pw_build/constraints/board:stm32f429i-disc1"],
106    parents = [":stm32f429"],
107)
108