From 4bc2cb358470f49f7c7e58b1da01413d267c0caf Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 21 Sep 2018 20:55:01 -0700 Subject: [PATCH] linux-riscv: Enable virtio cryptodev This helps with OpenSSL 1.x calling getrandom() API not hanging on openssh key generation Signed-off-by: Khem Raj --- recipes-kernel/linux/files/pci.cfg | 3 +++ recipes-kernel/linux/linux-riscv-common.inc | 1 + 2 files changed, 4 insertions(+) create mode 100644 recipes-kernel/linux/files/pci.cfg diff --git a/recipes-kernel/linux/files/pci.cfg b/recipes-kernel/linux/files/pci.cfg new file mode 100644 index 0000000..c234b7a --- /dev/null +++ b/recipes-kernel/linux/files/pci.cfg @@ -0,0 +1,3 @@ +CONFIG_CRYPTO_DEV_VIRTIO=y +CONFIG_PCI=y +CONFIG_PCI_HOST_GENERIC=y diff --git a/recipes-kernel/linux/linux-riscv-common.inc b/recipes-kernel/linux/linux-riscv-common.inc index b8b76c8..c1b763a 100644 --- a/recipes-kernel/linux/linux-riscv-common.inc +++ b/recipes-kernel/linux/linux-riscv-common.inc @@ -9,6 +9,7 @@ require recipes-kernel/linux/linux-yocto.inc SRC_URI = "\ git://github.com/riscv/riscv-linux.git;branch=${BRANCH} \ file://earlyprintk.cfg \ + file://pci.cfg \ " # qemu uses in-tree defconfig