summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseRngLib/BaseRngLib.inf
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseRngLib/BaseRngLib.inf')
-rw-r--r--MdePkg/Library/BaseRngLib/BaseRngLib.inf8
1 files changed, 8 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseRngLib/BaseRngLib.inf b/MdePkg/Library/BaseRngLib/BaseRngLib.inf
index 49503b139b..a1614a900f 100644
--- a/MdePkg/Library/BaseRngLib/BaseRngLib.inf
+++ b/MdePkg/Library/BaseRngLib/BaseRngLib.inf
@@ -50,6 +50,10 @@
[Guids.Ia32, Guids.X64]
gEfiRngAlgorithmSp80090Ctr256Guid
+[Sources.RISCV64]
+ Riscv/Rng.c
+ Riscv/Seed.S | GCC
+
[Packages]
MdePkg/MdePkg.dec
@@ -59,3 +63,7 @@
[LibraryClasses]
BaseLib
DebugLib
+
+[Pcd.RISCV64]
+ # Does the CPU support the Zkr extension (for the `Seed` CSR)
+ gEfiMdePkgTokenSpaceGuid.PcdRiscVFeatureOverride ## CONSUMES