Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <sivakumar.bs@gmail.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH v3] qemuboot.bbclass: add missing task dependency on kernel deploy
Date: Wed, 03 Jun 2026 14:33:34 +0200	[thread overview]
Message-ID: <DIZF18MG982K.1Y7D5ETMYWTR6@bootlin.com> (raw)
In-Reply-To: <20260602114204.1646653-1-sivakumar.bs@gmail.com>

On Tue Jun 2, 2026 at 1:42 PM CEST, Siva Balasubramanian via lists.openembedded.org wrote:
> do_write_qemuboot_conf had no dependency on the kernel deploy task,
> so if the kernel was rebuilt without invalidating the rootfs sstate,
> the task was skipped and .qemuboot.conf was left stale while new
> image artifacts were deployed with a new timestamp suffix.
>
> Add do_write_qemuboot_conf[depends] on KERNEL_DEPLOY_DEPEND using a
> Python expression to guard against the empty case, since baremetal
> images (which inherit qemuboot via baremetal-image.bbclass) do not
> set KERNEL_DEPLOY_DEPEND.
>
> KERNEL_DEPLOY_DEPEND is defined with ?= in image.bbclass and is
> already used by do_build[depends] for the same reason.
>
> Fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14520
> Signed-off-by: Siva Balasubramanian <sivakumar.bs@gmail.com>
> ---

Hi Siva,

Thanks for the new version.

It looks like we still have a failing selftest:

2026-06-02 20:22:55,502 - oe-selftest - INFO - fitimage.KernelFitImageRecipeTests.test_fit_image_sign_initramfs_bundle (subunit.RemotedTestCase)
2026-06-02 20:22:55,503 - oe-selftest - INFO -  ... FAIL
...
Initialising tasks...ERROR: 4014 unbuildable tasks were found.
These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_image (dependent Tasks ['core-image-minimal-initramfs.bb:do_flush_pseudodb', 'core-image-minimal-initramfs.bb:do_image_qa', 'core-image-minimal-initramfs.bb:do_write_qemuboot_conf', 'core-image-minimal-initramfs.bb:do_rootfs', 'core-image-minimal-initramfs.bb:do_create_rootfs_spdx'])
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_image_cpio (dependent Tasks ['cpio_2.15.bb:do_populate_sysroot', 'core-image-minimal-initramfs.bb:do_image'])
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_image_complete (dependent Tasks ['u-boot_2026.04.bb:do_populate_sysroot', 'core-image-minimal-initramfs.bb:do_image_cpio', 'qemu-helper-native_1.0.bb:do_addto_recipe_sysroot', 'core-image-minimal-initramfs.bb:do_image', 'qemu-helper-native_1.0.bb:do_populate_sysroot', 'qemu-native_10.2.0.bb:do_populate_sysroot', 'qemu-system-native_10.2.0.bb:do_populate_sysroot'])
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-kernel/linux/linux-yocto_6.18.bb:do_bundle_initramfs (dependent Tasks ['linux-yocto_6.18.bb:do_install', 'core-image-minimal-initramfs.bb:do_image_complete'])
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-kernel/linux/linux-yocto_6.18.bb:do_transform_bundled_initramfs (dependent Tasks ['linux-yocto_6.18.bb:do_bundle_initramfs'])
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-kernel/linux/linux-yocto_6.18.bb:do_deploy (dependent Tasks ['pigz_2.8.bb:do_populate_sysroot', 'linux-yocto_6.18.bb:do_bundle_initramfs', 'linux-yocto_6.18.bb:do_transform_bundled_initramfs', 'linux-yocto_6.18.bb:do_install', 'depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'linux-yocto_6.18.bb:do_packagedata', 'linux-yocto_6.18.bb:do_populate_sysroot'])
  Task /srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/recipes-core/images/core-image-minimal-initramfs.bb:do_write_qemuboot_conf (dependent Tasks ['core-image-minimal-initramfs.bb:do_rootfs', 'linux-yocto_6.18.bb:do_deploy'])
...

https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4039
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3951
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3809

Can you have a look at the issue?
The configuration used to reproduce can be found in the "OE Selftest:
Add layers" and "OE Selftest: Write config" steps.

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  reply	other threads:[~2026-06-03 12:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 11:42 [PATCH v3] qemuboot.bbclass: add missing task dependency on kernel deploy Siva Balasubramanian
2026-06-03 12:33 ` Mathieu Dubois-Briand [this message]
2026-06-03 13:49   ` [OE-core] " Siva Kumar Balasubramanian
2026-06-12  9:03     ` Siva Kumar Balasubramanian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DIZF18MG982K.1Y7D5ETMYWTR6@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=sivakumar.bs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox