diff options
author | Nishanth Menon | 2022-04-27 22:14:42 -0500 |
---|---|---|
committer | Ryan Eatmon | 2022-04-28 07:12:35 -0500 |
commit | 9e6c7d69d8d5700ff22ca03a3d1d1b04bce88f85 (patch) | |
tree | 912cdf511fd105c10831bee204977feb5bca2116 | |
parent | f77417fcbd5c376d139491ca34f0a6c82037f812 (diff) | |
download | meta-ti-9e6c7d69d8d5700ff22ca03a3d1d1b04bce88f85.tar.gz meta-ti-9e6c7d69d8d5700ff22ca03a3d1d1b04bce88f85.tar.xz meta-ti-9e6c7d69d8d5700ff22ca03a3d1d1b04bce88f85.zip |
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: 39fa0c1d3d02 ("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>
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index cc775e2e..903c61f0 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -1,6 +1,6 @@ | |||
1 | # UBOOT_LOCALVERSION can be set to add a tag to the end of the | 1 | # UBOOT_LOCALVERSION can be set to add a tag to the end of the |
2 | # U-boot version string. such as the commit id | 2 | # U-boot version string. such as the commit id |
3 | UBOOT_LOCALVERSION = "-g${@d.getVar("SRCREV", False).__str__()[:10]}" | 3 | UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).split('+')[1]}" |
4 | 4 | ||
5 | UBOOT_SUFFIX ?= "img" | 5 | UBOOT_SUFFIX ?= "img" |
6 | SPL_BINARY ?= "MLO" | 6 | SPL_BINARY ?= "MLO" |