summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-07-28 16:54:15 +0300
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-08-10 05:57:36 +0300
commit1b7de4f9efd7df1c82948c2b7b7a8cc4ed1577e3 (patch)
treeb59e36b7d8d32196b55081a8ba43510bfbb26040
parentec58228830a1f68e8e65099387cf12c5a91c9e72 (diff)
downloadu-boot-1b7de4f9efd7df1c82948c2b7b7a8cc4ed1577e3.tar.xz
riscv: qemu: imply CONFIG_DM_RNG
The EFI_RNG_PROTOCOL is needed for Linux' KASLR. QEMU can provide a virtio-rng device to emulate a hardware random number generator which is supported by our virtio_rng driver. Enabling CONFIG_DM_RNG will enable CONFIG_VIRTIO_RNG and CONFIG_EFI_RNG_PROTOCOL by default too. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r--board/emulation/qemu-riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig
index b503578d27..d56b4b5bc1 100644
--- a/board/emulation/qemu-riscv/Kconfig
+++ b/board/emulation/qemu-riscv/Kconfig
@@ -57,6 +57,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
imply NVME
imply PCI
imply PCIE_ECAM_GENERIC
+ imply DM_RNG
imply SCSI
imply DM_SCSI
imply SYS_NS16550