summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2023-08-22 17:06:48 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2023-08-22 17:17:31 +0200
commit0ffa2b2b3aec8b4456acebec33a09b9dd88f7f49 (patch)
tree5533276b6ea6088767bb9f052764f3a17e07c8de /classes
parent36705df6b7f3df7d913bc5dcc7299d14d9cd5b9f (diff)
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 <max.krummenacher@toradex.com>
Diffstat (limited to 'classes')
-rw-r--r--classes/toradex-kernel-localversion.bbclass11
1 files changed, 6 insertions, 5 deletions
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,