zephyr-qemuboot: Use image artifact file in qemuimage

Use image artifacts output file in qemuimage link.

Before:
zephyr-helloworld-image-{MACHINE}.elf -> zephyr-helloworld.elf

After:
zephyr-helloworld-image-{MACHINE}.elf -> zephyr-helloworld-{MACHINE}-{DATETIME}.elf

Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>
This commit is contained in:
Sandeep Gundlupet Raju
2025-08-14 21:54:44 -06:00
committed by Lee Chee Yang
parent e33069d814
commit 3c8650c86a

View File

@@ -1,6 +1,8 @@
inherit qemuboot
KERNEL_IMAGETYPE = "${PN}.elf"
ZEPHYR_IMAGE_BASE_NAME ?= "${PN}-${MACHINE}${IMAGE_VERSION_SUFFIX}"
KERNEL_IMAGETYPE = "${ZEPHYR_IMAGE_BASE_NAME}.elf"
QB_DEFAULT_FSTYPE = "elf"
QB_NETWORK_DEVICE = "none"
QB_NET = "none"
@@ -27,7 +29,7 @@ python bootconf_clean() {
python do_bootconf_write() {
bb.build.exec_func("do_write_qemuboot_conf", d)
qemuimage = "%s/%s.elf" % (d.getVar('DEPLOY_DIR_IMAGE', True), d.getVar('PN', True))
qemuimage = "%s/%s.elf" % (d.getVar('DEPLOY_DIR_IMAGE', True), d.getVar('ZEPHYR_IMAGE_BASE_NAME', True))
qemuimage_link = d.getVar('QEMU_IMAGE_LINK', True)
if os.path.lexists(qemuimage_link):
os.remove(qemuimage_link)