Skip to content

Commit 2c45453

Browse files
authored
[reconfigurator] rot-bootloader subcommand for reconfigurator-sp-updater (#8330)
Related: #7988
1 parent 6fcb607 commit 2c45453

File tree

1 file changed

+15
-0
lines changed
  • dev-tools/reconfigurator-sp-updater/src

1 file changed

+15
-0
lines changed

dev-tools/reconfigurator-sp-updater/src/main.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,14 @@ enum Component {
421421
#[arg(long, short = 't')]
422422
expected_transient_boot_preference: Option<RotSlot>,
423423
},
424+
RotBootloader {
425+
/// expected version of stage0 (active slot)
426+
#[arg(long, short = 'a')]
427+
expected_stage0_version: ArtifactVersion,
428+
/// expected version of stage0 next (inactive slot)
429+
#[arg(long, short = 'i')]
430+
expected_stage0_next_version: ExpectedVersion,
431+
},
424432
}
425433

426434
fn cmd_set(
@@ -481,6 +489,13 @@ fn cmd_set(
481489
expected_transient_boot_preference,
482490
}
483491
}
492+
Component::RotBootloader {
493+
expected_stage0_version,
494+
expected_stage0_next_version,
495+
} => PendingMgsUpdateDetails::RotBootloader {
496+
expected_stage0_version,
497+
expected_stage0_next_version,
498+
},
484499
},
485500
artifact_hash: args.artifact_hash,
486501
artifact_version: ArtifactVersion::new(args.version)

0 commit comments

Comments
 (0)