Skip to content

Commit 383746c

Browse files
committed
mcuboot: hooks: Add necessary flags in net hdr
Pretend that the radio primary image header contains all necessary flags. Signed-off-by: Tomasz Chyrowicz <tomasz.chyrowicz@nordicsemi.no>
1 parent 8ebbbd3 commit 383746c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

modules/mcuboot/hooks/nrf53_hooks.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ int boot_read_image_header_hook(int img_index, int slot, struct image_header *im
8585
img_head->ih_load_addr = DT_REG_ADDR(DT_NODELABEL(slot2_partition));
8686
img_head->ih_img_size = PCD_NET_CORE_APP_SIZE;
8787
#endif
88+
#ifdef MCUBOOT_CHECK_HEADER_LOAD_ADDRESS
89+
img_head->ih_flags = IMAGE_F_ROM_FIXED;
90+
#else
8891
img_head->ih_flags = 0;
92+
#endif
8993
img_head->ih_ver.iv_major = 0;
9094
img_head->ih_ver.iv_minor = 0;
9195
img_head->ih_ver.iv_revision = 0;

0 commit comments

Comments
 (0)