Skip to content

Commit

Permalink
[nrf fromtree] zephyr: Provide third image cases for direct image upload
Browse files Browse the repository at this point in the history
The commit adds missing support for direct upload of third
image slots.

(cherry picked from commit 0035c33)
Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
  • Loading branch information
de-nordic authored and carlescufi committed Sep 21, 2023
1 parent 7429a98 commit a1fa992
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boot/zephyr/flash_map_extended.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ int flash_area_id_from_direct_image(int image_id)
#if FIXED_PARTITION_EXISTS(slot3_partition)
case 4:
return FIXED_PARTITION_ID(slot3_partition);
#endif
#if FIXED_PARTITION_EXISTS(slot4_partition)
case 5:
return FIXED_PARTITION_ID(slot4_partition);
#endif
#if FIXED_PARTITION_EXISTS(slot5_partition)
case 6:
return FIXED_PARTITION_ID(slot5_partition);
#endif
}
return -EINVAL;
Expand Down

0 comments on commit a1fa992

Please sign in to comment.