Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions xtask/src/opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ pub struct QemuOpt {
#[clap(long, action)]
pub ovmf_vars: Option<PathBuf>,

/// Path of an OVMF shell application.
#[clap(long, action)]
pub ovmf_shell: Option<PathBuf>,

/// Run an example instead of the main binary.
#[clap(long, action)]
pub example: Option<String>,
Expand Down
2 changes: 1 addition & 1 deletion xtask/src/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ fn get_user_provided_path(file_type: FileType, opt: &QemuOpt) -> Option<PathBuf>
var_name = ENV_VAR_OVMF_VARS;
}
FileType::Shell => {
opt_path = &None;
opt_path = &opt.ovmf_shell;
var_name = ENV_VAR_OVMF_SHELL;
}
}
Expand Down