Skip to content

Commit e96b84b

Browse files
tomchygithub-actions[bot]
authored andcommitted
[nrf noup] bootutil_public: Limit hook calls
Limit the boot_read_swap_state_primary_slot_hook hook calls to the nRF5340 with the multi image updates enabled. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no> (cherry picked from commit ad892cf)
1 parent b720660 commit e96b84b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

boot/bootutil/src/bootutil_public.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,11 @@ boot_swap_type_multi(int image_index)
505505
int rc;
506506
size_t i;
507507

508+
#ifdef CONFIG_NRF53_MULTI_IMAGE_UPDATE
508509
rc = BOOT_HOOK_CALL(boot_read_swap_state_primary_slot_hook,
509510
BOOT_HOOK_REGULAR, image_index, &primary_slot);
510511
if (rc == BOOT_HOOK_REGULAR)
512+
#endif
511513
{
512514
rc = boot_read_swap_state_by_id(FLASH_AREA_IMAGE_PRIMARY(image_index),
513515
&primary_slot);

0 commit comments

Comments
 (0)