Skip to content

xtask: Update OVMF release to EDK2_STABLE202502_R2 #1637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
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
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion xtask/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ itertools = "0.14.0"
log.workspace = true
mbrman = "0.5.1"
nix = { version = "0.29.0", default-features = false, features = ["fs"] }
ovmf-prebuilt = "0.2.0"
ovmf-prebuilt = "0.2.3"
proc-macro2 = { version = "1.0.46", features = ["span-locations"] }
quote = "1.0.21"
regex = "1.10.2"
Expand Down
15 changes: 3 additions & 12 deletions xtask/src/qemu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ use tempfile::TempDir;
#[cfg(target_os = "linux")]
use {std::fs::Permissions, std::os::unix::fs::PermissionsExt};

/// Name of the ovmf-prebuilt release tag.
const OVMF_PREBUILT_TAG: &str = "edk2-stable202402-r1";

/// SHA-256 hash of the release tarball.
const OVMF_PREBUILT_HASH: &str = "91f3148ef146794241c77810a49cfa3e925c83eb55c5cc90f34718cc1b10e9eb";
/// Name of the ovmf-prebuilt release to use by default.
const OVMF_PREBUILT_SOURCE: Source = Source::EDK2_STABLE202502_R2;

/// Directory into which the prebuilts will be download (relative to the repo root).
const OVMF_PREBUILT_DIR: &str = "target/ovmf";
Expand Down Expand Up @@ -104,13 +101,7 @@ impl OvmfPaths {
);
}
} else {
let prebuilt = Prebuilt::fetch(
Source {
tag: OVMF_PREBUILT_TAG,
sha256: OVMF_PREBUILT_HASH,
},
OVMF_PREBUILT_DIR,
)?;
let prebuilt = Prebuilt::fetch(OVMF_PREBUILT_SOURCE, OVMF_PREBUILT_DIR)?;

Ok(prebuilt.get_file(arch.into(), file_type))
}
Expand Down
Loading