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 <[email protected]>
  • Loading branch information
katexochen committed Nov 12, 2024
1 parent 579e51f commit fee051c
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions packages/by-name/OVMF-SNP/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,33 @@
fetchFromGitHub,
nasm,
acpica-tools,
fetchpatch2,
applyPatches,
}:

edk2.mkDerivation "OvmfPkg/AmdSev/AmdSevX64.dsc" rec {
edk2.mkDerivation "OvmfPkg/AmdSev/AmdSevX64.dsc" {
name = "OVMF-SNP";
src = fetchFromGitHub {
owner = "amdese";
repo = "ovmf";
# https://github.com/AMDESE/ovmf/tree/apic-mmio-fix4
rev = "64b3116ed087f8cb026201e56e42efe751e2cf7d";
fetchSubmodules = true;
hash = "sha256-nb4p01Y+M5a3EEJb9692hcFkU7HgpbG1rZa60T+I8N4=";

src = applyPatches {
src = fetchFromGitHub {
owner = "amdese";
repo = "ovmf";
# https://github.com/AMDESE/ovmf/tree/apic-mmio-fix4
rev = "64b3116ed087f8cb026201e56e42efe751e2cf7d";
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 fee051c

Please sign in to comment.