Skip to content

Commit 862bca5

Browse files
sigvartmhcvinayak
authored andcommitted
[nrf noup] sysflash: pm_sysflash: Fix incorrect define exclude for NSIB
A mismatch in defines was made for `_image_1_primary_slot_id` resulting in some configurations not working. This fixes that the linker variable is exposed for mcuboot so that it knows which slot is running an which slot a bootloader upgrade is to be put into. Ref. NCSDK-19223 Signed-off-by: Sigvart Hovland <[email protected]> (cherry picked from commit 1f38eb8)
1 parent 9cd1de1 commit 862bca5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

boot/zephyr/include/sysflash/pm_sysflash.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515

1616
#ifndef CONFIG_SINGLE_APPLICATION_SLOT
1717

18-
#if (MCUBOOT_IMAGE_NUMBER == 2) && defined(PM_B0_ADDRESS) && \
19-
!defined(CONFIG_NRF53_MULTI_IMAGE_UPDATE)
20-
18+
#if (MCUBOOT_IMAGE_NUMBER == 2) && defined(PM_B0_ADDRESS)
2119
/* If B0 is present then two bootloaders are present, and we must use
2220
* a single secondary slot for both primary slots.
2321
*/
2422
extern uint32_t _image_1_primary_slot_id[];
23+
#endif /* (MCUBOOT_IMAGE_NUMBER == 2 && defined(PM_B0_ADDRESS) */
24+
25+
#if (MCUBOOT_IMAGE_NUMBER == 2) && defined(PM_B0_ADDRESS) && \
26+
!defined(CONFIG_NRF53_MULTI_IMAGE_UPDATE)
2527

2628
#define FLASH_AREA_IMAGE_PRIMARY(x) \
2729
((x == 0) ? \

0 commit comments

Comments
 (0)