summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <workjagadeesh@gmail.com>2022-12-13 14:58:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-06 17:33:23 +0000
commitea2fc2b81d5808efc6f5daee37235c6048228e7f (patch)
treecdb0c0407186fe74bd8f0cbc2dbf5e79ea6e68c2 /meta
parent45f3a4fd63503262499f98dd501bdb8da07a174f (diff)
downloadpoky-ea2fc2b81d5808efc6f5daee37235c6048228e7f.tar.gz
qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image
The QB_DEFAULT_KERNEL is set to pick bundled initramfs kernel image if the Linux kernel image is generated with INITRAMFS_IMAGE_BUNDLE="1". This makes runqemu to automatically pick bundled initramfs kernel image instead of explicitly mentioning bundled initramfs kernel image in runqemu. [YOCTO #14748] (From OE-Core rev: ce673bc9f74aff1b6ba06e7b1d90da529894dce3) Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 52371624313184e1a825519160c3833e282df8b9) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/qemuboot.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index ad8489902a..f2ebe94ca4 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -7,6 +7,7 @@
7# QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse" 7# QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse"
8# 8#
9# QB_DEFAULT_KERNEL: default kernel to boot, e.g., "bzImage" 9# QB_DEFAULT_KERNEL: default kernel to boot, e.g., "bzImage"
10# e.g., "bzImage-initramfs-qemux86-64.bin" if INITRAMFS_IMAGE_BUNDLE is set to 1.
10# 11#
11# QB_DEFAULT_FSTYPE: default FSTYPE to boot, e.g., "ext4" 12# QB_DEFAULT_FSTYPE: default FSTYPE to boot, e.g., "ext4"
12# 13#
@@ -87,7 +88,7 @@
87QB_MEM ?= "-m 256" 88QB_MEM ?= "-m 256"
88QB_SMP ?= "" 89QB_SMP ?= ""
89QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" 90QB_SERIAL_OPT ?= "-serial mon:stdio -serial null"
90QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}" 91QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}", d)}"
91QB_DEFAULT_FSTYPE ?= "ext4" 92QB_DEFAULT_FSTYPE ?= "ext4"
92QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" 93QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
93QB_OPT_APPEND ?= "" 94QB_OPT_APPEND ?= ""