From 5055445946599335426a9a32789f4b04768d75e5 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 6 May 2025 20:59:45 -0400 Subject: [PATCH] xtask: Add --ovmf-shell arg This makes the shell more consistent with ovmf-code/ovmf-vars. --- xtask/src/opt.rs | 4 ++++ xtask/src/qemu.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/xtask/src/opt.rs b/xtask/src/opt.rs index 191cb3d73..09350643c 100644 --- a/xtask/src/opt.rs +++ b/xtask/src/opt.rs @@ -194,6 +194,10 @@ pub struct QemuOpt { #[clap(long, action)] pub ovmf_vars: Option, + /// Path of an OVMF shell application. + #[clap(long, action)] + pub ovmf_shell: Option, + /// Run an example instead of the main binary. #[clap(long, action)] pub example: Option, diff --git a/xtask/src/qemu.rs b/xtask/src/qemu.rs index 90c2081ca..8f74cee63 100644 --- a/xtask/src/qemu.rs +++ b/xtask/src/qemu.rs @@ -62,7 +62,7 @@ fn get_user_provided_path(file_type: FileType, opt: &QemuOpt) -> Option var_name = ENV_VAR_OVMF_VARS; } FileType::Shell => { - opt_path = &None; + opt_path = &opt.ovmf_shell; var_name = ENV_VAR_OVMF_SHELL; } }