Skip to content

Commit

Permalink
[nrf noup] boot: zephyr: Add ifdef protection for RAM locking
Browse files Browse the repository at this point in the history
This adds an ifdef check so that RAM is only protected if PCD is
enabled, whereas previously this would cause a build failure.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm committed Sep 1, 2023
1 parent 71ec266 commit 4ec411c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boot/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ int main(void)
;
}

#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS)
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
pcd_lock_ram();
#endif
#endif /* USE_PARTITION_MANAGER && CONFIG_FPROTECT */
Expand Down

0 comments on commit 4ec411c

Please sign in to comment.