From c275cc585dcfe6a48153183162420eb1163e3db7 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Mon, 6 May 2024 16:23:06 +0300 Subject: [PATCH] base: linux-lmp: populate original PV as KSHORT_VER We need an original PV generated from a recipe file name for farther use. Store it in the new variable KSHORT_VER. Signed-off-by: Oleksandr Suvorov --- meta-lmp-base/recipes-kernel/linux/linux-lmp.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-lmp-base/recipes-kernel/linux/linux-lmp.inc b/meta-lmp-base/recipes-kernel/linux/linux-lmp.inc index 080bcc5de2..3551a4715f 100644 --- a/meta-lmp-base/recipes-kernel/linux/linux-lmp.inc +++ b/meta-lmp-base/recipes-kernel/linux/linux-lmp.inc @@ -1,6 +1,10 @@ DESCRIPTION = "Common Foundries.io Linux microPlatform Kernel" -PV = "${LINUX_VERSION}+git${SRCPV}" +# Save the original PV as KSHORT_VER for further use +python __anonymous () { + d.setVar('KSHORT_VER', d.getVar("PV")) + d.setVar('PV', d.getVar("LINUX_VERSION") + d.getVar("SRCPV")) +} KERNEL_FEATURES += "${@bb.utils.contains('MACHINE_FEATURES', 'jailhouse', ' features/jailhouse/jailhouse.scc', '', d)}"