Skip to content

Commit ad0f850

Browse files
committed
[nrf noup] boot: Fix PCD usage
nrf-squash! [nrf noup] boot: nrf53-specific customization Fixes missing include guards for some PCD includes Signed-off-by: Jamie McCrae <[email protected]>
1 parent 23a2592 commit ad0f850

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boot/bootutil/src/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
#endif /* CONFIG_NRF_MCUBOOT_IMG_VALIDATE_ATTEMPT_WAIT_MS */
6363
#endif
6464

65-
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS)
65+
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
6666
#include <dfu/pcd.h>
6767
#ifdef CONFIG_PCD_READ_NETCORE_APP_VERSION
6868
#include <fw_info_bare.h>

boot/zephyr/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const struct boot_uart_funcs boot_funcs = {
9393
#include <arm_cleanup.h>
9494
#endif
9595

96-
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS)
96+
#if defined(CONFIG_SOC_NRF5340_CPUAPP) && defined(PM_CPUNET_B0N_ADDRESS) && defined(CONFIG_PCD_APP)
9797
#include <dfu/pcd.h>
9898
#endif
9999

0 commit comments

Comments
 (0)