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

Mikko Rapeli <[email protected]> Fri, 26 Sep 2025 10:51:23 +0300
Newsgroups org.yoctoproject.lists.poky
Message-ID <aNZF-z35JTa8PQg2@nuoska>
Hi,

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.

This is why our genericarm64 test configurations use "poky-altcfg"
distro with systemd and not "poky" distro with sysvinit and no udev.

genericarm64 would also like to use the latest kernel, which right
now with 6.16 kernel includes a lot of fixes and enablers for more
HW support.

Could this change be considered?

Or are there any alternatives that we could use to for a combination
of latest stable kernel and systemd out of poky build configs?

Currently with "poky-altcfg" distro, we can't override the kernel version from
genericarm64 machine or local.conf build configurations. The distro
setting overrides these.

If this patch is applied, we can change the kernel version from
genericarm64 machine config or local.conf build config to get
a useful test combination.

Cheers,

-Mikko

> Signed-off-by: Mikko Rapeli <[email protected]>
> ---
>  meta-poky/conf/distro/include/poky-distro-alt-test-config.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc b/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc
> index da9199dcd4..5f86e36735 100644
> --- a/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc
> +++ b/meta-poky/conf/distro/include/poky-distro-alt-test-config.inc
> @@ -2,7 +2,7 @@
>  DISTRO_FEATURES:append = " pam usrmerge"
>  
>  # Use our alternate kernel version
> -PREFERRED_VERSION_linux-yocto = "6.12%"
> +PREFERRED_VERSION_linux-yocto ?= "6.12%"
>  
>  # Ensure the kernel nfs server is enabled
>  KERNEL_FEATURES:append:pn-linux-yocto = " features/nfsd/nfsd-enable.scc"
> -- 
> 2.34.1
>