]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: QB_FSINFO to support fstype wic images
authorAdrian Freihofer <adrian.freihofer@siemens.com>
Sun, 9 Jun 2019 12:03:42 +0000 (14:03 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jun 2019 16:37:34 +0000 (17:37 +0100)
commit2aa79a67affd22dfa37e4c2945c6ab0c86321f98
tree8b70a594809b75d098f32109ec2136e83d9a248a
parent8a6f7c1e455156966f467008645fef14db679ccf
runqemu: QB_FSINFO to support fstype wic images

wic images are handled as vmtype images. Starting qemu with "-kernel"
parameter and an image of type wic is not supported. Especially for
"-machine virt" the combination of wic with -kernel parameter would
be beneficial.

The new parameter QB_FSINFO allows to pass image type specific flags to
runqemu. QB_FSINFO is a space separated list of parameters. Parameters are
structured according to the following pattern: image-type:flag.

For now two parameters are supported:
- wic:no-kernel-in-fs
  The wic image is treated as rootfs only image. A -kernel option is
  passed to qemu.
- wic:kernel-in-fs
  The wic image is treated as VM image including a bootloader and a
  kernel. This is still the default behavior.

Example:
QB_DEFAULT_FSTYPE = "wic"
QB_FSINFO = "wic:no-kernel-in-fs"
QB_KERNEL_ROOT = "/dev/vda1"
QB_SYSTEM_NAME = "qemu-system-aarch64"
QB_MACHINE = "-machine virt"
...

[YOCTO #13336]

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu