From patchwork Thu Dec 3 14:30:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AdrianF X-Patchwork-Id: 107211 Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.15049.1796308258506931461 for ; Thu, 03 Dec 2026 06:30:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=adrian.freihofer@siemens.com header.s=fm1 header.b=WOFF/XNd; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.226, mailfrom: fm-1329275-2026120314305502b277467300020752-maizan@rts-flowmailer.siemens.com) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 2026120314305502b277467300020752 for ; Thu, 03 Dec 2026 15:30:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adrian.freihofer@siemens.com; h=from:from:sender:to:to:cc:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=xGAVTx1I1uU+mXLL77cylu2TEPveGcmSgAU+hFofSVs=; b=WOFF/XNdKZAeMwQB0KF8n3bGh8bJHqAEeLSrltGYCLwAnkZzJuHUuQ5pHg4eH+B9irpcPH I85x63aHINv46ODi4+4UgthiXnSrXgHU5mBwMeTp14LSNMulsbXj6UzyQ1EG2dzj0GMWdQGZ TDffZkiXT5UnPi7c8e2403G7tT5BajomMjbpc/qF549TrLfoZ94c4905Voircf+qfQdM/YfR PCY1kMf2pN0JU6irFGCs5ThibjQZ2GlojkSCQBIYCWWvhCMRX7TJtqVBa+EP+B06Y7noL57Z ctaBrHkDe7s/6VjX8z4XZ17JSSejPvXkmNBgL1P4tiDZ/r1XzNGc9cew==; From: AdrianF To: openembedded-core@lists.openembedded.org Cc: marex@nabladev.com, Adrian Freihofer Subject: [PATCH 2/8] lib/oe: add fitimage to BBIMPORTS Date: Thu, 3 Dec 2026 15:30:05 +0100 Message-ID: <20261203143044.592073-3-adrian.freihofer@siemens.com> In-Reply-To: <20261203143044.592073-1-adrian.freihofer@siemens.com> References: <20261203143044.592073-1-adrian.freihofer@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1329275:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Thu, 03 Dec 2026 14:31:05 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251898 From: Adrian Freihofer The code of oe.fitimage was not part of the task hash of the kernel-fit-image do_compile task. A change of the generated its file or of the mkimage calls did not trigger a rebuild of the FIT image and an outdated FIT image could be restored from sstate. Add fitimage to BBIMPORTS. Then the code parser scans the functions and classes of the module and the ones used by do_compile become task dependencies. The code parser only detects classes which are called, but not base classes. The ItsNode base class implements the emit function which writes the its file. Add it explicitly to the vardeps of do_compile. oe.fitimage does not access the datastore. All variables are read in do_compile and passed as arguments. Hence no new variable dependencies are added. Tested with bitbake -S none linux-yocto-fitimage. The do_compile signature changes after modifying ItsNode, ItsNodeRootKernel or symlink_points_below and is restored after reverting the modification. Signed-off-by: Adrian Freihofer --- meta/classes-recipe/kernel-fit-image.bbclass | 2 ++ meta/lib/oe/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes-recipe/kernel-fit-image.bbclass b/meta/classes-recipe/kernel-fit-image.bbclass index 0c8dac23ee..c167fc8c64 100644 --- a/meta/classes-recipe/kernel-fit-image.bbclass +++ b/meta/classes-recipe/kernel-fit-image.bbclass @@ -216,6 +216,8 @@ python do_compile() { root_node.run_mkimage_sign(fitname) } do_compile[depends] += "virtual/kernel:do_deploy" +# Base classes are not detected by the code parser, only called classes are +do_compile[vardeps] += "oe.fitimage.ItsNode" do_install() { install -d "${D}/${KERNEL_IMAGEDEST}" diff --git a/meta/lib/oe/__init__.py b/meta/lib/oe/__init__.py index 1e47934e6f..fcef7c5747 100644 --- a/meta/lib/oe/__init__.py +++ b/meta/lib/oe/__init__.py @@ -12,4 +12,4 @@ __path__ = extend_path(__path__, __name__) BBIMPORTS = ["qa", "data", "path", "utils", "types", "package", "packagedata", \ "packagegroup", "sstatesig", "lsb", "cachedpath", "license", "qemu", \ "reproducible", "rust", "buildcfg", "go", "spdx30_tasks", "spdx_common", \ - "cve_check", "tune", "classextend", "purl", "kernel", "kernel_module", "sanity"] + "cve_check", "tune", "classextend", "purl", "kernel", "kernel_module", "sanity", "fitimage"]