From e8ad55a0ee45c815e3fa425ce819a77caa2660c4 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 29 Jul 2026 22:36:09 -0700 Subject: [PATCH] turbostat: Use oe.kernel.get_version_file oe-core commit b980106560 ("lib/oe/kernel: Move python functions from linux-kernel-base to library code") moved the kernel helpers out of linux-kernel-base.bbclass into meta/lib/oe/kernel.py and renamed them from get_kernelXXX to oe.kernel.get_XXX, so get_kernelversion_file no longer exists and expanding KERNEL_VERSION raises NameError. turbostat is COMPATIBLE_HOST x86 only, so this does not show up when parsing for other architectures, but it breaks the same way as zabbix did. Switch to the new name. The functions now live in the oe library, which is always available in python expressions, so the linux-kernel-base inherit is no longer needed -- it only exports KBUILD_BUILD_* now, which is of no use here, and upstream intends to remove the class entirely. Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/turbostat/turbostat.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta-oe/recipes-kernel/turbostat/turbostat.bb b/meta-oe/recipes-kernel/turbostat/turbostat.bb index f65699865e..fcd1b116b8 100644 --- a/meta-oe/recipes-kernel/turbostat/turbostat.bb +++ b/meta-oe/recipes-kernel/turbostat/turbostat.bb @@ -16,8 +16,7 @@ LIC_FILES_CHKSUM = "file://${UNPACKDIR}/COPYING;md5=bbea815ee2795b2f4230826c0c6b COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux' COMPATIBLE_HOST:libc-musl = "null" -KERNEL_VERSION = "${@get_kernelversion_file("${STAGING_KERNEL_BUILDDIR}")}" -inherit linux-kernel-base +KERNEL_VERSION = "${@oe.kernel.get_version_file("${STAGING_KERNEL_BUILDDIR}")}" SRC_URI += "\ file://COPYING \