OVMF: add support for http boot
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
parent
478c52b7e5
commit
a964b3cb6f
@ -1,6 +1,7 @@
|
||||
{ stdenv, lib, edk2, util-linux, nasm, iasl
|
||||
, csmSupport ? false, seabios ? null
|
||||
, secureBoot ? false
|
||||
, httpSupport ? false
|
||||
}:
|
||||
|
||||
assert csmSupport -> seabios != null;
|
||||
@ -30,7 +31,8 @@ edk2.mkDerivation projectDscPath {
|
||||
|
||||
buildFlags =
|
||||
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 ''
|
||||
cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
|
||||
|
Loading…
Reference in New Issue
Block a user