Commit 36ec0e7b authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

Add #ifdef for non-used function in overwrite only

parent 4649072b
Loading
Loading
Loading
Loading
+2
Changes for boot/bootutil/src/loader.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -210,6 +210,7 @@ boot_previous_swap_type(void)
 * Compute the total size of the given image.  Includes the size of
 * the TLVs.
 */
#ifndef MCUBOOT_OVERWRITE_ONLY
static int
boot_read_image_size(int slot, struct image_header *hdr, uint32_t *size)
{
@@ -242,6 +243,7 @@ done:
    flash_area_close(fap);
    return rc;
}
#endif /* !MCUBOOT_OVERWRITE_ONLY */

static int
boot_read_image_header(int slot, struct image_header *out_hdr)