riscv: qemu: imply CONFIG_DM_RNG
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 28 Jul 2023 13:54:15 +0000 (15:54 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 10 Aug 2023 02:57:36 +0000 (10:57 +0800)
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>
board/emulation/qemu-riscv/Kconfig

index b503578..d56b4b5 100644 (file)
@@ -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