SPEC-2376: Add config for QEMU arm kernels 62/21662/2
authorCorentin Labbe <clabbe@baylibre.com>
Mon, 17 Jun 2019 13:18:06 +0000 (13:18 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 21 Jun 2019 11:30:54 +0000 (11:30 +0000)
The default yocto qemuarm machine is versatilepb which is not the right
choice for AGL (ex: Max 256M of RAM).
This patchs change qemuarm configs for using the virt machine.

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

diff --git a/meta-agl-bsp/meta-core/recipes-kernel/linux/linux-yocto/qemuarm.cfg b/meta-agl-bsp/meta-core/recipes-kernel/linux/linux-yocto/qemuarm.cfg
new file mode 100644 (file)
index 0000000..e71c714
--- /dev/null
@@ -0,0 +1,6 @@
+# Necessary configs for using the virt qemu machine
+CONFIG_ARCH_MULTI_V7=y
+CONFIG_ARCH_VIRT=y
+CONFIG_SERIAL_AMBA_PL011=y
+CONFIG_PCI_HOST_GENERIC=y
+CONFIG_RTC_DRV_PL031=y
index d8a5839..e97b8f9 100644 (file)
@@ -8,6 +8,9 @@ SRC_URI += "file://hciattach.cfg \
 # Enable some things on qemuarm64 so MOST drivers will build and load.
 SRC_URI_append_qemuarm64 = " file://most_deps.cfg"
 
+# Configuration for using the virt machine (and not versatilepb)
+SRC_URI_append_qemuarm = " file://qemuarm.cfg"
+
 # Build a generic v7 kernel instead of the arm926j one that upstream
 # qemuarm defaults to.
 KBUILD_DEFCONFIG_qemuarm = "multi_v7_defconfig"