Re: [poky] [PATCH] poky-distro-alt-test-config.inc: don't override PREFERRED_VERSION_linux-yocto

Mikko Rapeli <[email protected]> Mon, 29 Sep 2025 09:53:00 +0300
Newsgroups org.yoctoproject.lists.poky
Message-ID <aNoszGV_zv03UFNz@nuoska>
Hi,

On Fri, Sep 26, 2025 at 05:05:44PM +0100, Richard Purdie wrote:
> On Fri, 2025-09-26 at 10:51 +0300, Mikko Rapeli via lists.yoctoproject.org wrote:
> > On Thu, Sep 04, 2025 at 12:59:43PM +0300, Mikko Rapeli wrote:
> > > This overrides PREFERRED_VERSION_linux-yocto set in machine
> > > config. Use ?= like in poky distro config so that machines
> > > can override PREFERRED_VERSION_linux-yocto and for example
> > > update to 6.16 kernel via machine config.
> > 
> > genericarm64 does not work well on devices which are not known
> > at compile time without udev and thus systemd.
> 
> You're asking we add code to mandate systemd and disable sysvinit
> builds for genericarm64?
>
> We should also mandate the 6.16 kernel and drop support for 6.12?

No, I'm not asking for these, but I'm asking for a build variant
with latest stable kernel and systemd for genericarm64. That does not
exist. We only have older 6.12 kernel and systemd in "poky-altcfg" distro
or newer 6.16 kernel and sysvinit from "poky" distro. And from machine
config side we can't change the kernel version for example to be 6.16
in poky master branch for genericarm64 because "poky-altcfg" overrides
that.

This issue is resolved when 6.12 kernel is removed from master branch
and 6.16 comes the default, but comes back when the next kernel stable
update comes along.

> By extension that means that musl isn't supported for genericarm64
> without security issues for example.
> 
> That would be a major change to our current plans/policies :(.
> 
> So no, this simple change really isn't that simple.

The selected kernel version is IMO an agreement between machine
and distro. Currently in "poky-altcfg" distro dictates and
machines can't influense that. I think machines should be able
to influence that and for example update the kernel on all genericarm64
builds to 6.16. Support for 6.12 continues in stable branch.

In current state, the pre-built genericarm64 binaries for "poky" and
"poky-altcfg" distros are not very useful from yocto/oe-core releases.
Thus we must rebuild and also apply patches to update the kernel,
patches because even local.conf build config can't change the kernel
version set in "poky-altcfg" distro.

Cheers,

-Mikko