Skip to content

Commit

Permalink
[nrf temphack] bootutil: loader: Fix multi-image variant builds
Browse files Browse the repository at this point in the history
Seems multi-image dependencies are not supported for multi-image in NCS
yet. This is a hack which reverts it to how it worked previously in
MCUboot. So that Immutable bootloader + MCUBoot type of builds will work
again.

Ref. NCSDK-8681

Signed-off-by: Sigvart Hovland <[email protected]>
(cherry picked from commit c1688c6)
  • Loading branch information
sigvartmh authored and mbolivar-nordic committed Jun 10, 2021
1 parent 2014ac1 commit 7bbe7f1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions boot/bootutil/src/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ boot_verify_dependencies(struct boot_loader_state *state)
if (rc == 0) {
/* All dependencies've been satisfied, continue with next image. */
BOOT_CURR_IMG(state)++;
} else {
} else if (rc == BOOT_EBADIMAGE) {
/* Cannot upgrade due to non-met dependencies, so disable all
* image upgrades.
*/
Expand All @@ -1413,7 +1413,10 @@ boot_verify_dependencies(struct boot_loader_state *state)
BOOT_SWAP_TYPE(state) = BOOT_SWAP_TYPE_NONE;
}
break;
}
} else {
/* Other error happened, images are inconsistent */
return rc;
}
}
return rc;
}
Expand Down

0 comments on commit 7bbe7f1

Please sign in to comment.