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_SYSMPU nxp_mpu.c) 8 9if(CONFIG_CPU_CORTEX_M AND NOT CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS) 10 zephyr_library_sources_ifdef(CONFIG_CPU_HAS_ARM_MPU arm_mpu_regions.c) 11 zephyr_library_sources_ifdef(CONFIG_CPU_HAS_NXP_SYSMPU nxp_mpu_regions.c) 12endif() 13 14if (CONFIG_CPU_AARCH32_CORTEX_R) 15zephyr_library_include_directories(cortex_a_r) 16elseif (CONFIG_CPU_CORTEX_M) 17zephyr_library_include_directories(cortex_m) 18else () 19message(FATAL_ERROR "CPU is not Cortex-A/R/M") 20endif () 21