Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 1 | # Copyright 2020 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. |
| 14 | |
| 15 | load( |
| 16 | "//pw_build:pigweed.bzl", |
| 17 | "pw_cc_library", |
| 18 | ) |
| 19 | |
| 20 | package(default_visibility = ["//visibility:public"]) |
| 21 | |
Rob Mohr | 5fc2541 | 2021-06-23 09:35:23 -0700 | [diff] [blame] | 22 | licenses(["notice"]) |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 23 | |
| 24 | pw_cc_library( |
Ewout van Bekkum | 242a27c | 2021-12-20 08:59:35 -0800 | [diff] [blame] | 25 | name = "context_headers", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 26 | hdrs = [ |
Ewout van Bekkum | c423748 | 2020-12-17 09:52:06 -0800 | [diff] [blame] | 27 | "public/pw_interrupt_cortex_m/context_inline.h", |
| 28 | "public_overrides/pw_interrupt_backend/context_inline.h", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 29 | ], |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 30 | includes = [ |
| 31 | "public", |
| 32 | "public_overrides", |
| 33 | ], |
Ewout van Bekkum | 242a27c | 2021-12-20 08:59:35 -0800 | [diff] [blame] | 34 | deps = [ |
Ted Pudlik | 64110f5 | 2022-01-14 21:09:44 +0000 | [diff] [blame] | 35 | "//pw_preprocessor:cortex_m", |
Ewout van Bekkum | 242a27c | 2021-12-20 08:59:35 -0800 | [diff] [blame] | 36 | ], |
| 37 | ) |
| 38 | |
| 39 | pw_cc_library( |
| 40 | name = "context", |
| 41 | deps = [ |
| 42 | ":context_headers", |
| 43 | "//pw_interrupt:context_facade", |
| 44 | ], |
| 45 | ) |
| 46 | |
| 47 | # The following targets are deprecated, depend on ":context" instead. |
| 48 | pw_cc_library( |
| 49 | name = "context_armv7m_headers", |
| 50 | deps = [ |
| 51 | ":context_headers", |
| 52 | ], |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 53 | ) |
| 54 | |
| 55 | pw_cc_library( |
| 56 | name = "context_armv7m", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 57 | deps = [ |
Ewout van Bekkum | 242a27c | 2021-12-20 08:59:35 -0800 | [diff] [blame] | 58 | ":context", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 59 | ], |
| 60 | ) |
| 61 | |
| 62 | pw_cc_library( |
| 63 | name = "context_armv8m_headers", |
Ewout van Bekkum | 242a27c | 2021-12-20 08:59:35 -0800 | [diff] [blame] | 64 | deps = [ |
| 65 | ":context_headers", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 66 | ], |
| 67 | ) |
| 68 | |
| 69 | pw_cc_library( |
| 70 | name = "context_armv8m", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 71 | deps = [ |
Ewout van Bekkum | 242a27c | 2021-12-20 08:59:35 -0800 | [diff] [blame] | 72 | ":context", |
Ewout van Bekkum | bd4906c | 2020-11-11 13:42:13 -0800 | [diff] [blame] | 73 | ], |
| 74 | ) |