diff --git a/soc/nordic/common/CMakeLists.txt b/soc/nordic/common/CMakeLists.txt index 513a3a968b8..37f27e250de 100644 --- a/soc/nordic/common/CMakeLists.txt +++ b/soc/nordic/common/CMakeLists.txt @@ -13,6 +13,10 @@ endif() zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c) +if((CONFIG_SOC_SERIES_NRF54HX OR CONFIG_SOC_SERIES_NRF92X) AND CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS) + zephyr_library_sources(nrf54hx_nrf92x_mpu_regions.c) +endif() + zephyr_include_directories(.) if(CONFIG_HAS_NORDIC_DMM) diff --git a/soc/nordic/nrf54h/mpu_regions.c b/soc/nordic/common/nrf54hx_nrf92x_mpu_regions.c similarity index 100% rename from soc/nordic/nrf54h/mpu_regions.c rename to soc/nordic/common/nrf54hx_nrf92x_mpu_regions.c diff --git a/soc/nordic/nrf54h/CMakeLists.txt b/soc/nordic/nrf54h/CMakeLists.txt index 88e45de0046..1aa4723814f 100644 --- a/soc/nordic/nrf54h/CMakeLists.txt +++ b/soc/nordic/nrf54h/CMakeLists.txt @@ -5,8 +5,6 @@ if(CONFIG_ARM) zephyr_library_sources(soc.c) endif() -zephyr_library_sources_ifdef(CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS mpu_regions.c) - zephyr_include_directories(.) # Ensure that image size aligns with 16 bytes so that MRAMC finalizes all writes