summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/qemuboot.bbclass
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <workjagadeesh@gmail.com>2022-12-13 14:58:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-21 10:16:31 +0000
commit80b0e933a016f5575f3c6536359940da98e42eee (patch)
treefec0f5d9ae8cf9ad631b8a321a28b634612e1aec /meta/classes-recipe/qemuboot.bbclass
parentf520268975470b17212e95d106d5b5a646d22580 (diff)
downloadpoky-80b0e933a016f5575f3c6536359940da98e42eee.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: 52371624313184e1a825519160c3833e282df8b9) 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>
Diffstat (limited to 'meta/classes-recipe/qemuboot.bbclass')
-rw-r--r--meta/classes-recipe/qemuboot.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass
index 018c000ca2..5a0e50ccfc 100644
--- a/meta/classes-recipe/qemuboot.bbclass
+++ b/meta/classes-recipe/qemuboot.bbclass
@@ -13,6 +13,7 @@
13# QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse" 13# QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse"
14# 14#
15# QB_DEFAULT_KERNEL: default kernel to boot, e.g., "bzImage" 15# QB_DEFAULT_KERNEL: default kernel to boot, e.g., "bzImage"
16# e.g., "bzImage-initramfs-qemux86-64.bin" if INITRAMFS_IMAGE_BUNDLE is set to 1.
16# 17#
17# QB_DEFAULT_FSTYPE: default FSTYPE to boot, e.g., "ext4" 18# QB_DEFAULT_FSTYPE: default FSTYPE to boot, e.g., "ext4"
18# 19#
@@ -93,7 +94,7 @@
93QB_MEM ?= "-m 256" 94QB_MEM ?= "-m 256"
94QB_SMP ?= "" 95QB_SMP ?= ""
95QB_SERIAL_OPT ?= "-serial mon:stdio -serial null" 96QB_SERIAL_OPT ?= "-serial mon:stdio -serial null"
96QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}" 97QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}", d)}"
97QB_DEFAULT_FSTYPE ?= "ext4" 98QB_DEFAULT_FSTYPE ?= "ext4"
98QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0" 99QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
99QB_OPT_APPEND ?= "" 100QB_OPT_APPEND ?= ""