blob: 6cc9cedb65103bc7a0cfef0a9c530015891756a9 [file] [log] [blame]
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -08001# 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
Wyatt Hepler0a6f7632020-10-29 09:08:19 -070015include($ENV{PW_ROOT}/pw_build/pigweed.cmake)
16
Ewout van Bekkum5401d402021-12-14 11:28:11 -080017pw_add_facade(pw_cpu_exception.entry
Ewout van Bekkum5401d402021-12-14 11:28:11 -080018 HEADERS
19 public/pw_cpu_exception/entry.h
20 public/pw_cpu_exception/state.h
Ewout van Bekkum88060402022-01-20 08:33:49 -080021 PUBLIC_INCLUDES
22 public
23 PUBLIC_DEPS
24 pw_preprocessor
Ewout van Bekkum5401d402021-12-14 11:28:11 -080025)
26
27pw_add_facade(pw_cpu_exception.handler
Ewout van Bekkum88060402022-01-20 08:33:49 -080028 HEADERS
29 public/pw_cpu_exception/handler.h
30 PUBLIC_INCLUDES
31 public
Ewout van Bekkum5401d402021-12-14 11:28:11 -080032 PUBLIC_DEPS
33 pw_cpu_exception.entry
34 pw_preprocessor
35 SOURCES
36 start_exception_handler.cc
Ewout van Bekkum5401d402021-12-14 11:28:11 -080037)
38
39pw_add_facade(pw_cpu_exception.support
Ewout van Bekkum5401d402021-12-14 11:28:11 -080040 HEADERS
41 public/pw_cpu_exception/support.h
Ewout van Bekkum88060402022-01-20 08:33:49 -080042 PUBLIC_INCLUDES
43 public
44 PUBLIC_DEPS
45 pw_cpu_exception.entry
Ewout van Bekkum5401d402021-12-14 11:28:11 -080046)
47
48pw_add_module_library(pw_cpu_exception.basic_handler
Ewout van Bekkum5401d402021-12-14 11:28:11 -080049 SOURCES
50 basic_handler.cc
Ewout van Bekkum88060402022-01-20 08:33:49 -080051 PRIVATE_DEPS
52 pw_cpu_exception.entry
53 pw_log
Wyatt Hepler0fbcdfc2020-01-02 07:53:39 -080054)