edk2: support RISC-V

EDK2 has a good support of RISC-V nowadays.
This commit is contained in:
Raito Bezarius
2023-11-25 12:47:30 +01:00
parent e99c920fb1
commit 6a2ed3adf2

View File

@@ -21,6 +21,8 @@ else if stdenv.isAarch32 then
"ARM"
else if stdenv.isAarch64 then
"AARCH64"
else if stdenv.hostPlatform.isRiscV64 then
"RISCV64"
else
throw "Unsupported architecture";
@@ -92,7 +94,7 @@ edk2 = stdenv.mkDerivation rec {
description = "Intel EFI development kit";
homepage = "https://github.com/tianocore/tianocore.github.io/wiki/EDK-II/";
license = licenses.bsd2;
platforms = with platforms; aarch64 ++ arm ++ i686 ++ x86_64;
platforms = with platforms; aarch64 ++ arm ++ i686 ++ x86_64 ++ riscv64;
};
passthru = {