[PATCH] genericarm64.conf: override poky-altcfg distro kernel version

Mikko Rapeli <[email protected]> Sat, 29 Nov 2025 15:39:01 +0200
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
To use latest stable kernel from oe-core. It has much more genericarm64
support than the old version selected by poky-altcfg distro.

genericarm64 machine basically only works well with systemd init with
udev already in initramfs and thus with poky-altcfg distro, not plain
poky distro.

This setting makes default release binaries for poky-altcfg distro
useful for genericarm64 machine and the many HW devices we want to
support.

Cc: Ross Burton <[email protected]>
Signed-off-by: Mikko Rapeli <[email protected]>
---
 meta-yocto-bsp/conf/machine/genericarm64.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf b/meta-yocto-bsp/conf/machine/genericarm64.conf
index ff0c29d..d1763f3 100644
--- a/meta-yocto-bsp/conf/machine/genericarm64.conf
+++ b/meta-yocto-bsp/conf/machine/genericarm64.conf
@@ -12,6 +12,9 @@ MACHINE_FEATURES = "acpi alsa bluetooth efi keyboard pci qemu-usermode rtc scree
 
 KERNEL_IMAGETYPE = "Image"
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
+# Update kernel to latest stable when using systemd based poky-altcfg distro
+PREFERRED_VERSION_linux-yocto:poky-altcfg = ""
+PREFERRED_VERSION_linux-yocto-rt:poky-altcfg = ""
 
 # Install all the kernel modules into the rootfs
 MACHINE_EXTRA_RRECOMMENDS += "kernel-modules"
-- 
2.34.1