From 8bd2976358b216debdc1baa3464e3829810398c8 Mon Sep 17 00:00:00 2001
From: Anders Roxell <anders.roxell@linaro.org>
Date: Thu, 15 Mar 2018 10:45:15 +0100
Subject: [PATCH] add virtio fragment

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 recipes-kernel/linux/linux-generic-mainline_git.bb  |  2 ++
 recipes-kernel/linux/linux-hikey-aosp/virtio.config | 11 +++++++++++
 2 files changed, 13 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-hikey-aosp/virtio.config

diff --git a/recipes-kernel/linux/linux-generic-mainline_git.bb b/recipes-kernel/linux/linux-generic-mainline_git.bb
index 54e68a9..f5c95f7 100644
--- a/recipes-kernel/linux/linux-generic-mainline_git.bb
+++ b/recipes-kernel/linux/linux-generic-mainline_git.bb
@@ -11,6 +11,7 @@ SRC_URI = "\
     git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=https;branch=master;name=kernel \
     file://distro-overrides.config;subdir=git/kernel/configs \
     file://systemd.config;subdir=git/kernel/configs \
+    file://virtio.config;subdir=git/kernel/configs \
 "
 
 S = "${WORKDIR}/git"
@@ -20,6 +21,7 @@ KERNEL_IMAGETYPE ?= "Image"
 KERNEL_CONFIG_FRAGMENTS += "\
     ${S}/kernel/configs/distro-overrides.config \
     ${S}/kernel/configs/systemd.config \
+    ${S}/kernel/configs/virtio.config \
 "
 
 # make[3]: *** [scripts/extract-cert] Error 1
diff --git a/recipes-kernel/linux/linux-hikey-aosp/virtio.config b/recipes-kernel/linux/linux-hikey-aosp/virtio.config
new file mode 100644
index 0000000..8d78249
--- /dev/null
+++ b/recipes-kernel/linux/linux-hikey-aosp/virtio.config
@@ -0,0 +1,11 @@
+CONFIG_VIRTIO_PCI=y
+CONFIG_VIRT_DRIVERS=y
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_PCI_LEGACY=y
+CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_BLK=y
+CONFIG_SCSI_VIRTIO=y
+CONFIG_BLK_MQ_VIRTIO=y
+CONFIG_HW_RANDOM_VIRTIO=y
+CONFIG_VIRTIO_NET=y
+CONFIG_VIRTIO_CONSOLE=y
-- 
2.16.1

