OVMF: add 32-bit ARM support

Smoke tested in qemu.
This commit is contained in:
Alyssa Ross 2023-01-02 03:31:18 +00:00
parent 35b4b29302
commit cc06a391ad

View File

@ -13,7 +13,7 @@ let
"OvmfPkg/OvmfPkgIa32.dsc"
else if stdenv.isx86_64 then
"OvmfPkg/OvmfPkgX64.dsc"
else if stdenv.isAarch64 then
else if stdenv.hostPlatform.isAarch then
"ArmVirtPkg/ArmVirtQemu.dsc"
else
throw "Unsupported architecture";
@ -52,7 +52,7 @@ edk2.mkDerivation projectDscPath (finalAttrs: {
cp ${seabios}/Csm16.bin OvmfPkg/Csm/Csm16/Csm16.bin
'';
postFixup = if stdenv.isAarch64 then ''
postFixup = if stdenv.hostPlatform.isAarch then ''
mkdir -vp $fd/FV
mkdir -vp $fd/AAVMF
mv -v $out/FV/QEMU_{EFI,VARS}.fd $fd/FV