mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-04-20 11:42:57 +00:00
u-boot-ti: Use SRCPV instead of SRCREV for U_BOOT_LOCAL_VERSION
SRCREV works with fixed commits, but when we use AUTOREV for a
downstream distro bbappend, we will end up getting a bad local
revision.
Lets use SRCPV instead, which bitbake already deals with sensibly.
[1] https://www.yoctoproject.org/docs/2.5.1/dev-manual/dev-manual.html#automatically-incrementing-a-binary-package-revision-number
Fixes: 39fa0c1d3d ("u-boot-ti: Use SRCREV to get short commit ID")
Suggested-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
This commit is contained in:
committed by
Ryan Eatmon
parent
aedd163c79
commit
e3505e2cd0
@@ -1,6 +1,6 @@
|
||||
# UBOOT_LOCALVERSION can be set to add a tag to the end of the
|
||||
# U-boot version string. such as the commit id
|
||||
UBOOT_LOCALVERSION = "-g${@d.getVar("SRCREV", False).__str__()[:10]}"
|
||||
UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).split('+')[1]}"
|
||||
|
||||
UBOOT_SUFFIX ?= "img"
|
||||
SPL_BINARY ?= "MLO"
|
||||
|
||||
Reference in New Issue
Block a user