Skip to content

Commit

Permalink
Correctly mark RoT Bootloader as skipped (#6117)
Browse files Browse the repository at this point in the history
When the RoT bootloader is skipped we need to update it similarly to the
RoT and SP.
  • Loading branch information
labbott authored Jul 24, 2024
1 parent 38575ab commit 12df35d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wicket/src/state/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,15 @@ impl UpdateItem {
}
| StepEventKind::StepCompleted { step, outcome, .. } => {
if step.info.is_last_step_in_component() {
// The RoT and SP components each have two steps in
// them. If the second step ("Updating RoT/SP") is
// The RoT (and bootloader) and SP components each
// have two steps in them. If the second step
// ("Updating RoT Bootloader/RoT/SP") is
// skipped, then treat the component as skipped.
if matches!(
step.info.component,
UpdateComponent::Sp | UpdateComponent::Rot
UpdateComponent::Sp
| UpdateComponent::Rot
| UpdateComponent::RotBootloader
) {
assert_eq!(
step.info.id,
Expand Down

0 comments on commit 12df35d

Please sign in to comment.