Merge pull request #113243 from baloo/baloo/ovmf/http-boot
OVMF: add support for http boot
This commit is contained in:
commit
052f58b7fa
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv, lib, edk2, util-linux, nasm, iasl
|
{ stdenv, lib, edk2, util-linux, nasm, iasl
|
||||||
, csmSupport ? false, seabios ? null
|
, csmSupport ? false, seabios ? null
|
||||||
, secureBoot ? false
|
, secureBoot ? false
|
||||||
|
, httpSupport ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert csmSupport -> seabios != null;
|
assert csmSupport -> seabios != null;
|
||||||
|
@ -30,7 +31,8 @@ edk2.mkDerivation projectDscPath {
|
||||||
|
|
||||||
buildFlags =
|
buildFlags =
|
||||||
lib.optional secureBoot "-DSECURE_BOOT_ENABLE=TRUE"
|
lib.optional secureBoot "-DSECURE_BOOT_ENABLE=TRUE"
|
||||||
++ lib.optionals csmSupport [ "-D CSM_ENABLE" "-D FD_SIZE_2MB" ];
|
++ lib.optionals csmSupport [ "-D CSM_ENABLE" "-D FD_SIZE_2MB" ]
|
||||||
|
++ lib.optionals httpSupport [ "-DNETWORK_HTTP_ENABLE=TRUE" "-DNETWORK_HTTP_BOOT_ENABLE=TRUE" ];
|
||||||
|
|
||||||
postPatch = lib.optionalString csmSupport ''
|
postPatch = lib.optionalString csmSupport ''
|
||||||
cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
|
cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
|
||||||
|
|
Loading…
Reference in a new issue