Skip to content

Commit d72702d

Browse files
authored
Merge pull request #1656 from rust-osdev/bishop-ovmf-shell
xtask: Add --ovmf-shell arg
2 parents 4fcdb3a + 5055445 commit d72702d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

xtask/src/opt.rs

+4
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ pub struct QemuOpt {
194194
#[clap(long, action)]
195195
pub ovmf_vars: Option<PathBuf>,
196196

197+
/// Path of an OVMF shell application.
198+
#[clap(long, action)]
199+
pub ovmf_shell: Option<PathBuf>,
200+
197201
/// Run an example instead of the main binary.
198202
#[clap(long, action)]
199203
pub example: Option<String>,

xtask/src/qemu.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn get_user_provided_path(file_type: FileType, opt: &QemuOpt) -> Option<PathBuf>
6262
var_name = ENV_VAR_OVMF_VARS;
6363
}
6464
FileType::Shell => {
65-
opt_path = &None;
65+
opt_path = &opt.ovmf_shell;
6666
var_name = ENV_VAR_OVMF_SHELL;
6767
}
6868
}

0 commit comments

Comments
 (0)