From patchwork Thu Jul 23 12:49:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nora Schiffer X-Patchwork-Id: 2686 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 EC236C531CB for ; Thu, 23 Jul 2026 12:50:19 +0000 (UTC) Received: from www537.your-server.de (www537.your-server.de [188.40.3.216]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.22720.1784811015149875043 for ; Thu, 23 Jul 2026 05:50:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ew.tq-group.com header.s=default2602 header.b=af9W/Rlq; 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: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:In-Reply-To:References; bh=rbK3kZpRL/vPDmE+CPJJWRarr8w7uDCuBVP4yDxZfQ8=; b=af9W/RlqAN9h8g+G3rh6jbsW71 7+8/q25uYcGicm905p1TVca24L/cwtb7gji+XmKJ/l18IXwC4iOUd4dJq09PrHDJPFAW6tL5l/MdG IVandyJnCcmqLXLmbRWh0/PkVv5gOy36JkjK85vEoKtA74gm1HaP58+u6DZ5L13awyn3oJocWvMII 96c5uYIpfWntNRvrO3xFAzfy9BVWN+lSXKh4nTPlnMrEARBGmwy28+uQEZ7cvPXcsVVnm6tpUoJvs gtlaBtF7ZVjVmny03+jEjSTn0jsmAQNG7TyX8ZE4TcGZGif0nBJgaFUbmHVBMZtJi6KteXQHs9jyf 09TkCjNQ==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www537.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1wmssP-000KwC-0E; Thu, 23 Jul 2026 14:50:12 +0200 Received: from localhost ([127.0.0.1]) by sslproxy05.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wmssO-0001T4-1Z; Thu, 23 Jul 2026 14:50:12 +0200 From: Nora Schiffer To: openembedded-core@lists.openembedded.org Cc: oss@ew.tq-group.com, Nora Schiffer Subject: [PATCH 0/3] kernel-fit-image: allow replacing kernel, handle compression in FIT recipe Date: Thu, 23 Jul 2026 14:49:41 +0200 Message-ID: <20260723124944.69070-1-nora.schiffer@ew.tq-group.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 X-Virus-Scanned: Clear (ClamAV 1.4.3/28069/Thu Jul 23 08:24:48 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 ; Thu, 23 Jul 2026 12:50:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/241830 Add support for building alternative kernel images into a FIT image instead of using linux.bin. An incomplete solution with a similar goal was added in in commit 9c8ef2119949 ("kernel-fit-image: control kernel section with FIT_LINUX_BIN") and subsequently reverted in commit 6eae261b6f52 ("Revert "kernel-fit-image: control kernel section with FIT_LINUX_BIN"") due to missing features, lack of tests and the submitter having abandoned their approach. With the new approach, compression is now either handled as part of the FIT image (KERNEL_FILENAME) or the image is considered to be compressed already (KERNEL_FILENAME_COMPRESSED). The option to let the kernel recipe do the compression and store the result in the image deploydir as linux.bin is preserved for backwards compatibility, but will result in a deprecation warning. Our main use case for this is to support building a FIT image with an EFI application as kernel (with FIT_OS = "efi"). Nora Schiffer (3): kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf kernel-fit-image: reintroduce option to replace kernel image kernel-fit-extra-artifacts: skip building linux.bin if unneeded .../kernel-fit-extra-artifacts.bbclass | 4 +- meta/classes-recipe/kernel-fit-image.bbclass | 53 ++++++++-- meta/classes-recipe/kernel-uboot.bbclass | 3 +- meta/conf/image-fitimage.conf | 27 +++++- meta/lib/oeqa/selftest/cases/fitimage.py | 97 ++++++++++++++++++- 5 files changed, 167 insertions(+), 17 deletions(-)