]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
runqemu: respect IMAGE_LINK_NAME
authorMartin Jansa <Martin.Jansa@gmail.com>
Thu, 30 Mar 2023 23:27:24 +0000 (01:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Apr 2023 10:40:00 +0000 (11:40 +0100)
commit716eb55bb963db7b02d985849cb025898aabc855
treefa9c5e50b7aa97f24021df6f4cc24c455a745bcc
parent755321362e994a6a37a0f554b1aea56823de924e
runqemu: respect IMAGE_LINK_NAME

* when searching for qemuboot.conf
* don't assume that IMAGE_LINK_NAME is always
  <rootfs>-<machine> (with <rootfs>-<machine>.qemuboot.conf)

* runqemu: use IMAGE_LINK_NAME set by testimage.bbclass or query with bitbake -e

* testimage.bbclass was setting DEPLOY_DIR which I don't see used
  anywhere else, so I assume it was supposed to be DEPLOY_DIR_IMAGE as mentioned
  in corresponding runqemu code, do the same with IMAGE_LINK_NAME variable

* add virtual/kernel as bitbake -e target in run_bitbake_env to make
  sure IMAGE_LINK_NAME is defined (kernel-artifact-names.bbclass inherits
  image-artifact-names.bbclass as well)

* improve .qemuboot.conf search
  1st search for file matching the rootfs and only when not found
  try again with .rootfs suffix removed

[YOCTO #12937]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/testimage.bbclass
scripts/runqemu