aboutsummaryrefslogtreecommitdiff
path: root/pw_cpu_exception/backend.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'pw_cpu_exception/backend.cmake')
-rw-r--r--pw_cpu_exception/backend.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/pw_cpu_exception/backend.cmake b/pw_cpu_exception/backend.cmake
new file mode 100644
index 000000000..1f56d2034
--- /dev/null
+++ b/pw_cpu_exception/backend.cmake
@@ -0,0 +1,21 @@
+# Copyright 2022 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.
+include_guard(GLOBAL)
+
+include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
+
+# Backends for the pw_cpu_exception module.
+pw_add_backend_variable(pw_cpu_exception.entry_BACKEND)
+pw_add_backend_variable(pw_cpu_exception.handler_BACKEND)
+pw_add_backend_variable(pw_cpu_exception.support_BACKEND)