ovmf: fixup seabios location
Since it is now on `${seabios}/share/seabios`.
This commit is contained in:
parent
ba3dcb9dc5
commit
d5c17b3c47
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, nixosTests, lib, edk2, util-linux, nasm, acpica-tools, llvmPackages
|
{ stdenv, nixosTests, lib, edk2, util-linux, nasm, acpica-tools, llvmPackages
|
||||||
, csmSupport ? false, seabios ? null
|
, csmSupport ? false, seabios
|
||||||
, fdSize2MB ? csmSupport
|
, fdSize2MB ? csmSupport
|
||||||
, fdSize4MB ? false
|
, fdSize4MB ? false
|
||||||
, secureBoot ? false
|
, secureBoot ? false
|
||||||
|
@ -12,8 +12,6 @@
|
||||||
, sourceDebug ? false
|
, sourceDebug ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert csmSupport -> seabios != null;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
projectDscPath = if stdenv.isi686 then
|
projectDscPath = if stdenv.isi686 then
|
||||||
|
@ -68,7 +66,7 @@ edk2.mkDerivation projectDscPath (finalAttrs: {
|
||||||
env.PYTHON_COMMAND = "python3";
|
env.PYTHON_COMMAND = "python3";
|
||||||
|
|
||||||
postPatch = lib.optionalString csmSupport ''
|
postPatch = lib.optionalString csmSupport ''
|
||||||
cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
|
cp ${seabios}/share/seabios/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = (
|
postFixup = (
|
||||||
|
|
Loading…
Reference in a new issue