From patchwork Mon Jul 27 09:06:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nora Schiffer X-Patchwork-Id: 93575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9A44CC54EFC for ; Mon, 27 Jul 2026 09:06:35 +0000 (UTC) Received: from www537.your-server.de (www537.your-server.de [188.40.3.216]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.26928.1785143188651224789 for ; Mon, 27 Jul 2026 02:06:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ew.tq-group.com header.s=default2602 header.b=cowVxLD2; spf=pass (domain: ew.tq-group.com, ip: 188.40.3.216, mailfrom: nora.schiffer@ew.tq-group.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ew.tq-group.com; s=default2602; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=wcrSCDzctFmBDk+jrMmQTHZP106Z57mzRh0eVxcuK2o=; b=cowVxLD2Uc6tRo3yyVXhqEncVu irUepFOlg2SGuKqzWZ3xqeZX8P3WKCuCy99Pg85zfDfnM7ZzCgnSszofAq0OmpxhyXlALFMNu7R4L tsVsj+65yN7G79nfmJ0HTiEAcjhJyrzsrW1ig/O7592DCloCVczTUIlV1Qbnf2v6yWqiqpN260A/W IbwzEZmtPMjGknq9PRShJ3NBBTqvlp5+VcUTAnsRs+RIpbBPFzdybr5yxTLSuMc4UHE1zu4z9SkMU jJFxTkALShXddaDjxVjGTUVWvEox0PZTMmPZyH8GKrzlgA/r+JRUeb8Dr+M+JHPS94iMj2jjlofJV 1mJQJRnQ==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www537.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1woHI2-000ART-2Z; Mon, 27 Jul 2026 11:06:26 +0200 Received: from localhost ([127.0.0.1]) by sslproxy06.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1woHI3-000A13-0E; Mon, 27 Jul 2026 11:06:26 +0200 From: Nora Schiffer To: openembedded-core@lists.openembedded.org Cc: oss@ew.tq-group.com, Nora Schiffer Subject: [PATCH v2 3/3] kernel-fit-extra-artifacts: skip building linux.bin if unneeded Date: Mon, 27 Jul 2026 11:06:01 +0200 Message-ID: <20260727090601.489155-4-nora.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260727090601.489155-1-nora.schiffer@ew.tq-group.com> References: <20260727090601.489155-1-nora.schiffer@ew.tq-group.com> MIME-Version: 1.0 X-Virus-Scanned: Clear (ClamAV 1.4.3/28074/Mon Jul 27 08:25:14 2026) List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 27 Jul 2026 09:06:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/242069 The linux.bin generation logic is both complex and inflexible. With the introduction of FIT_KERNEL_FILENAME[_COMPRESSED], building linux.bin can be skipped if any of the two variables is set to a non-default value, as kernel-fit-image.bbclass will handle the compression itself. Signed-off-by: Nora Schiffer --- meta/classes-recipe/kernel-fit-extra-artifacts.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass b/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass index 385fe9895a..02e7d1273f 100644 --- a/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass +++ b/meta/classes-recipe/kernel-fit-extra-artifacts.bbclass @@ -11,7 +11,9 @@ inherit kernel-uboot kernel_do_deploy:append() { # Provide the kernel artifacts to post processing recipes e.g. for creating a FIT image - uboot_prep_kimage "$deployDir" + if [ -z "${FIT_KERNEL_FILENAME}" ] && [ "${FIT_KERNEL_FILENAME_COMPRESSED}" = 'linux.bin' ]; then + uboot_prep_kimage "$deployDir" + fi # For x86 a setup.bin needs to be include"d in a fitImage as well if [ -e ${KERNEL_OUTPUT_DIR}/setup.bin ]; then install -D "${B}/${KERNEL_OUTPUT_DIR}/setup.bin" "$deployDir/"