arch: arm: nrf: conditionally compile mpu_regions.c

This commit enforces conditional compilation of mpu_regions.c
in nrf52/CMakeLists.txt depending on whether ARM_MPU_NRF52X
K-option is defined.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2018-07-04 09:11:14 +02:00 committed by Anas Nashif
parent 414291cc12
commit e202e04499
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF52832 NRF52832_XXAA)
zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF52840 NRF52840_XXAA)
zephyr_sources(
mpu_regions.c
power.c
soc.c
)
zephyr_sources_ifdef(CONFIG_ARM_MPU_NRF52X mpu_regions.c)