SPEC-2376: Add virtio configs for QEMU arm/arm64 kernels 77/21377/2
authorCorentin Labbe <clabbe@baylibre.com>
Thu, 23 May 2019 08:59:27 +0000 (08:59 +0000)
committerCorentin Labbe <clabbe@baylibre.com>
Tue, 28 May 2019 06:54:04 +0000 (06:54 +0000)
QEMU arm/arm64 need some VIRTIO configs for having storage for rootfs.
Bug-AGL: SPEC-2376

Change-Id: Ia4b53092418b9f5e4040b8dafc58262a98bcac46
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
meta-agl-bsp/meta-core/recipes-kernel/linux/linux-yocto/virtio.cfg [new file with mode: 0644]
meta-agl-bsp/meta-core/recipes-kernel/linux/linux-yocto_%.bbappend

diff --git a/meta-agl-bsp/meta-core/recipes-kernel/linux/linux-yocto/virtio.cfg b/meta-agl-bsp/meta-core/recipes-kernel/linux/linux-yocto/virtio.cfg
new file mode 100644 (file)
index 0000000..9bdc2c6
--- /dev/null
@@ -0,0 +1,4 @@
+# qemu need a virtio storage for rootfs
+CONFIG_BLK_MQ_VIRTIO=y
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_BLK=y
index bfb0d32..d8a5839 100644 (file)
@@ -2,6 +2,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:"
 
 # Extra configuration options for the QEMU kernel
 SRC_URI += "file://hciattach.cfg \
+           file://virtio.cfg \
             "
 
 # Enable some things on qemuarm64 so MOST drivers will build and load.