1 # Copyright 2021 The Pigweed Authors
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
7 # https://www.apache.org/licenses/LICENSE-2.0
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
16 "//pw_build:pigweed.bzl",
22 package(default_visibility = ["//visibility:public"])
24 licenses(["notice"]) # Apache License 2.0
27 name = "support_armv7m",
28 includes = ["public"],
34 hdrs = [ "public/pw_cpu_exception_cortex_m/cpu_state.h" ],
37 "pw_cpu_exception_cortex_m_private/cortex_m_constants.h",
42 name = "proto_dump_armv7m",
50 hdrs = ["public/pw_cpu_exception_cortex_m/proto_dump.h"],
51 srcs = ["proto_dump.cc"],
55 name = "cpu_state_protos",
56 srcs = ["pw_cpu_exception_cortex_m_protos/cpu_state.proto"],
59 # TODO(pwbug/296): The *_armv7m libraries work on ARMv8-M, but needs some minor
60 # patches for complete correctness. Add *_armv8m targets that use the same files
61 # but provide preprocessor defines to enable/disable architecture specific code.
63 name = "cpu_exception_armv7m",
67 # TODO(pwbug/101): Need to add support for facades/backends to Bazel.
73 "pw_cpu_exception_cortex_m_private/cortex_m_constants.h",
78 name = "cpu_exception_entry_test",
80 "exception_entry_test.cc",
83 ":cpu_exception_armv7m",