Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Nora Schiffer <nora.schiffer@ew.tq-group.com>,
	 openembedded-core@lists.openembedded.org
Cc: oss@ew.tq-group.com
Subject: Re: [OE-core] [PATCH v2 1/3] kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf
Date: Thu, 30 Jul 2026 14:50:13 +0100	[thread overview]
Message-ID: <cd649f7216df69f4240e27bfb063044108baf6df.camel@linuxfoundation.org> (raw)
In-Reply-To: <26b3d2639b1c7c876ca89818bf1372c46163a939.camel@ew.tq-group.com>

On Thu, 2026-07-30 at 15:35 +0200, Nora Schiffer wrote:
> On Thu, 2026-07-30 at 14:09 +0100, Richard Purdie wrote:
> > On Thu, 2026-07-30 at 13:15 +0200, Nora Schiffer wrote:
> > > On Thu, 2026-07-30 at 11:43 +0100, Richard Purdie wrote:
> > > 
> > > Okay, new plan: Change uboot_prep_kimage to accept the compression algorithm as
> > > an argument, so we can use different variables when calling it from kernel-
> > > uimage.bbclass and kernel-fit-extra-artifacts.bbclass. kernel-uimage.bbclass
> > > could then use a separate variable UBOOT_MKIMAGE_KERNEL_COMP_ALG instead of
> > > reusing the FIT one.
> > > 
> > > A more radical approach would be to skip the deprecation of using a linux.bin
> > > generated by the kernel recipe as a FIT image's kernel and drop support
> > > immediately.
> > 
> > Can you see from the commit history who might have been using that? Do
> > you think there are many people relying upon it? If that functionality
> > doesn't make much sense and wouldn't or shouldn't be used by people,
> > I'm fine with actually removing it, as long as we're clear about why it
> > likely isn't needed or is inefficient (or whatever) and what the
> > alternative is.
> > 
> > A lot of the time I think we support too many code paths when we should
> > try and encourage people to do the "best" known things.
> 
> Right now using linux.bin is the only way to build a FIT image using kernel-fit-
> image.bbclass - my patch 2/3 introduces the option to use something different
> instead of linux.bin. As currently implemented, the patch results in a
> deprecation warning for *all* BSPs that build FIT images, but that seems
> preferable to breaking such BSPs.
> 
> Making FIT_KERNEL_FILENAME default to KERNEL_IMAGETYPE would keep the FIT image
> working where KERNEL_IMAGETYPE is the correct image to include in the FIT, but
> it would differ from the current generation of linux.bin in kernel-uboot.bbclass
> in most cases. As far as I can tell this should work as intended on platforms
> that set KERNEL_IMAGETYPE to "Image"; types like zImage and bzImage would result
> in double compression with the default settings, and most other types would just
> be unbootable. I don't think we should go with this solution.

Right, that does not sound like a good outcome. It also means that
linux.bin isn't really deprecated though as the commit messages hinted
at :/.

This is why I'm asking questions since I really haven't looked into
this in detail. I'm just very worried about the spaghetti nature of our
classes and really don't want to make it worse.

Cheers,

Richard


  reply	other threads:[~2026-07-30 13:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-27  9:05 [PATCH v2 0/3] kernel-fit-image: allow replacing kernel, handle compression in FIT recipe Nora Schiffer
2026-07-27  9:05 ` [PATCH v2 1/3] kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf Nora Schiffer
2026-07-30 10:43   ` [OE-core] " Richard Purdie
2026-07-30 11:15     ` Nora Schiffer
2026-07-30 13:09       ` Richard Purdie
2026-07-30 13:35         ` Nora Schiffer
2026-07-30 13:50           ` Richard Purdie [this message]
2026-07-30 14:05             ` Nora Schiffer
2026-07-27  9:06 ` [PATCH v2 2/3] kernel-fit-image: reintroduce option to replace kernel image Nora Schiffer
2026-07-27  9:06 ` [PATCH v2 3/3] kernel-fit-extra-artifacts: skip building linux.bin if unneeded Nora Schiffer

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=cd649f7216df69f4240e27bfb063044108baf6df.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=nora.schiffer@ew.tq-group.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=oss@ew.tq-group.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