* [OE-core][PATCH] qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image
@ 2022-12-13 14:58 Jagadeesh Krishnanjanappa
2022-12-20 4:42 ` Jagadeesh Krishnanjanappa
0 siblings, 1 reply; 2+ messages in thread
From: Jagadeesh Krishnanjanappa @ 2022-12-13 14:58 UTC (permalink / raw)
To: openembedded-core; +Cc: Jagadeesh Krishnanjanappa
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]
Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
---
meta/classes-recipe/qemuboot.bbclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/qemuboot.bbclass b/meta/classes-recipe/qemuboot.bbclass
index 018c000ca20..5a0e50ccfc2 100644
--- a/meta/classes-recipe/qemuboot.bbclass
+++ b/meta/classes-recipe/qemuboot.bbclass
@@ -13,6 +13,7 @@
# QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse"
#
# QB_DEFAULT_KERNEL: default kernel to boot, e.g., "bzImage"
+# e.g., "bzImage-initramfs-qemux86-64.bin" if INITRAMFS_IMAGE_BUNDLE is set to 1.
#
# QB_DEFAULT_FSTYPE: default FSTYPE to boot, e.g., "ext4"
#
@@ -93,7 +94,7 @@
QB_MEM ?= "-m 256"
QB_SMP ?= ""
QB_SERIAL_OPT ?= "-serial mon:stdio -serial null"
-QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}"
+QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}", d)}"
QB_DEFAULT_FSTYPE ?= "ext4"
QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0"
QB_OPT_APPEND ?= ""
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [OE-core][PATCH] qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image
2022-12-13 14:58 [OE-core][PATCH] qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image Jagadeesh Krishnanjanappa
@ 2022-12-20 4:42 ` Jagadeesh Krishnanjanappa
0 siblings, 0 replies; 2+ messages in thread
From: Jagadeesh Krishnanjanappa @ 2022-12-20 4:42 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]
ping.
On Tue, Dec 13, 2022 at 8:28 PM Jagadeesh Krishnanjanappa <
workjagadeesh@gmail.com> wrote:
> 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]
>
> Signed-off-by: Jagadeesh Krishnanjanappa <workjagadeesh@gmail.com>
> ---
> meta/classes-recipe/qemuboot.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes-recipe/qemuboot.bbclass
> b/meta/classes-recipe/qemuboot.bbclass
> index 018c000ca20..5a0e50ccfc2 100644
> --- a/meta/classes-recipe/qemuboot.bbclass
> +++ b/meta/classes-recipe/qemuboot.bbclass
> @@ -13,6 +13,7 @@
> # QB_OPT_APPEND: options to append to qemu, e.g., "-device usb-mouse"
> #
> # QB_DEFAULT_KERNEL: default kernel to boot, e.g., "bzImage"
> +# e.g.,
> "bzImage-initramfs-qemux86-64.bin" if INITRAMFS_IMAGE_BUNDLE is set to 1.
> #
> # QB_DEFAULT_FSTYPE: default FSTYPE to boot, e.g., "ext4"
> #
> @@ -93,7 +94,7 @@
> QB_MEM ?= "-m 256"
> QB_SMP ?= ""
> QB_SERIAL_OPT ?= "-serial mon:stdio -serial null"
> -QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}"
> +QB_DEFAULT_KERNEL ?= "${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1",
> "${KERNEL_IMAGETYPE}-${INITRAMFS_LINK_NAME}.bin", "${KERNEL_IMAGETYPE}",
> d)}"
> QB_DEFAULT_FSTYPE ?= "ext4"
> QB_RNG ?= "-object rng-random,filename=/dev/urandom,id=rng0 -device
> virtio-rng-pci,rng=rng0"
> QB_OPT_APPEND ?= ""
> --
> 2.17.1
>
>
[-- Attachment #2: Type: text/html, Size: 2331 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-20 4:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-13 14:58 [OE-core][PATCH] qemuboot.bbclass: make sure runqemu boots bundled initramfs kernel image Jagadeesh Krishnanjanappa
2022-12-20 4:42 ` Jagadeesh Krishnanjanappa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.