From 0ffa2b2b3aec8b4456acebec33a09b9dd88f7f49 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 22 Aug 2023 17:06:48 +0200 Subject: toradex-kernel-localversion: follow oe changes The setting of localversion has been changed in openembedded-core to accomodate changes in the kernel sources around v6.3. This changed that the kernel and external kernel modules with our way of setting localversion didn't use the same module magic. One used what we want for LOCALVERSION twice while the other uses it only once. Compare with OE-Commits: commit b378eec156 ("kernel: make LOCALVERSION consistent between recipes") commit 765b13b730 ("kernel: fix localversion in v6.3+") Related-to: ELB-5330 Signed-off-by: Max Krummenacher --- classes/toradex-kernel-localversion.bbclass | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'classes') diff --git a/classes/toradex-kernel-localversion.bbclass b/classes/toradex-kernel-localversion.bbclass index a60b3a6..d17dcd5 100644 --- a/classes/toradex-kernel-localversion.bbclass +++ b/classes/toradex-kernel-localversion.bbclass @@ -4,8 +4,8 @@ # # The following options are supported: # -# SCMVERSION Puts the Git hash in kernel local version -# LOCALVERSION Value used in LOCALVERSION +# SCMVERSION Puts the Git hash in kernel local version +# KERNEL_LOCALVERSION Value used in LOCALVERSION by the oe kernel classes # # Copyright 2014, 2015 (C) O.S. Systems Software LTDA. # Copyright 2019 (C) Toradex AG @@ -14,11 +14,12 @@ inherit toradex-kernel-config TDX_VERSION ??= "0" SCMVERSION ??= "y" -LOCALVERSION ?= "-${TDX_VERSION}" +KERNEL_LOCALVERSION ?= "-${TDX_VERSION}" +# mute the meta-freescale/classes/fsl-kernel-localversion setting, otherwise +# with latest master we get -${TDX_VERSION} twice in the resulting version. +LINUX_VERSION_EXTENSION = "" kernel_do_configure:append() { - kernel_configure_variable LOCALVERSION "\"${LOCALVERSION}\"" - if [ "${SCMVERSION}" = "y" ]; then # Add GIT revision to the local version # SRCREV_machine is used in kernel recipes using kernel-yocto.bbclass, -- cgit v1.2.3