diff mbox series

[meta-oe,1/2] discoverable-disk-image: drop do_unpack deptask

Message ID 20261109152242.1135919-1-johannes.schneider@leica-geosystems.com
State Under Review
Headers show
Series [meta-oe,1/2] discoverable-disk-image: drop do_unpack deptask | expand

Commit Message

Johannes Schneider Nov. 9, 2026, 3:22 p.m. UTC
do_image_ddi depends on do_unpack of every recipe in DEPENDS. do_unpack
has no setscene task, so whenever do_image_ddi runs, do_fetch and
do_unpack are executed for all of them, even if everything else comes
from sstate.

The sources are not used: the DDI is built from IMAGE_ROOTFS, and
systemd-repart, erofs-utils and openssl come from the native sysroot,
which do_prepare_recipe_sysroot already populates through DEPENDS.

Suggested-by: Roman Nazarenko <roman.nazarenko@leica-geosystems.com>
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
---

Build-tested on scarthgap with this class (meta-oe master's version,
both patches of the series applied): "bitbake -g" shows do_image_ddi
depending only on do_image instead of do_unpack of 11 recipes, and two
signed lzma sysext DDIs build.

 meta-oe/classes/discoverable-disk-image.bbclass | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/classes/discoverable-disk-image.bbclass b/meta-oe/classes/discoverable-disk-image.bbclass
index 1f3a7b08e1..02ad900d0f 100644
--- a/meta-oe/classes/discoverable-disk-image.bbclass
+++ b/meta-oe/classes/discoverable-disk-image.bbclass
@@ -134,4 +134,3 @@  oe_image_systemd_repart_make_ddi() {
 }
 
 IMAGE_CMD:ddi = "oe_image_systemd_repart_make_ddi"
-do_image_ddi[deptask] += "do_unpack"