edk2: support RISC-V

EDK2 has a good support of RISC-V nowadays.

(cherry picked from commit 6a2ed3adf2)
This commit is contained in:
Raito Bezarius
2023-11-25 12:47:30 +01:00
committed by github-actions[bot]
parent 99c106153c
commit f1d97c980a

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 = {