Skip to content

Commit

Permalink
packages.OVMF-SNP: patch missing git submodule
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Nov 11, 2024
1 parent 579e51f commit bacf047
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/by-name/OVMF-SNP/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
fetchFromGitHub,
nasm,
acpica-tools,
fetchpatch2,
}:

edk2.mkDerivation "OvmfPkg/AmdSev/AmdSevX64.dsc" rec {
edk2.mkDerivation "OvmfPkg/AmdSev/AmdSevX64.dsc" {
name = "OVMF-SNP";

src = fetchFromGitHub {
owner = "amdese";
repo = "ovmf";
Expand All @@ -18,6 +20,16 @@ edk2.mkDerivation "OvmfPkg/AmdSev/AmdSevX64.dsc" rec {
fetchSubmodules = true;
hash = "sha256-nb4p01Y+M5a3EEJb9692hcFkU7HgpbG1rZa60T+I8N4=";
};

patches = [
# UnitTestFrameworkPkg: Use TianoCore mirror of subhook submodule
# https://github.com/tianocore/edk2/pull/6402
(fetchpatch2 {
url = "https://github.com/tianocore/edk2/commit/95d8a1c255cfb8e063d679930d08ca6426eb5701.patch";
hash = "sha256-7xGc1jM90Z3Uv/3QZCqry2EHQRV0nokqL1sfG6k2WS8=";
})
];

postPatch = ''
touch OvmfPkg/AmdSev/Grub/grub.efi
'';
Expand Down

0 comments on commit bacf047

Please sign in to comment.