1# SPDX-License-Identifier: Apache-2.0
2
3zephyr_library()
4
5zephyr_library_sources(                             arm_core_mpu.c)
6zephyr_library_sources_ifdef(CONFIG_CPU_HAS_ARM_MPU arm_mpu.c)
7zephyr_library_sources_ifdef(CONFIG_CPU_HAS_NXP_MPU nxp_mpu.c)
8
9if (CONFIG_CPU_AARCH32_CORTEX_R)
10zephyr_library_include_directories(cortex_a_r)
11elseif (CONFIG_CPU_CORTEX_M)
12zephyr_library_include_directories(cortex_m)
13else ()
14message(FATAL_ERROR "CPU is not Cortex-A/R/M")
15endif ()
16