Skip to content

Commit

Permalink
base: linux-lmp: populate original PV as KSHORT_VER
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MrCry0 committed May 6, 2024
1 parent 9b746e0 commit c275cc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meta-lmp-base/recipes-kernel/linux/linux-lmp.inc
Original file line number Diff line number Diff line change
@@ -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)}"

Expand Down

0 comments on commit c275cc5

Please sign in to comment.