diff options
author | Ryan Eatmon <reatmon@ti.com> | 2024-02-28 16:16:55 -0600 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2024-03-04 13:56:57 -0600 |
commit | c335b13d63a7d62cd8f746f7333b6a3a418e6614 (patch) | |
tree | eec42930783081fd2f94419c88c98282edfc6655 | |
parent | c9b66975f32bf0d2c5a167421827140ed6eb318a (diff) | |
download | meta-ti-c335b13d63a7d62cd8f746f7333b6a3a418e6614.tar.gz |
u-boot-ti: Change from UBOOT_LOCALVERSION and SRCPV
Stop using UBOOT_LOCALVERSION, and copy what is done in the kernel recipe. This
allows us to set the correct SHA into the version string even if AUTOREV is used
since SRCPV is no longer set in oe-core.
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
-rw-r--r-- | meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc index 42ddf40f..2a35c3c8 100644 --- a/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +++ b/meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -1,6 +1,9 @@ | |||
1 | # UBOOT_LOCALVERSION can be set to add a tag to the end of the | 1 | do_compile:prepend () { |
2 | # U-boot version string. such as the commit id | 2 | scm_version=$(printf '%s%s' -ti-g $(git -C ${S} rev-parse --verify HEAD 2>/dev/null | cut -c1-12)) |
3 | UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).replace('AUTOINC+','')[:10]}" | 3 | |
4 | echo ${scm_version} > ${B}/.scmversion | ||
5 | echo ${scm_version} > ${S}/.scmversion | ||
6 | } | ||
4 | 7 | ||
5 | UBOOT_SUFFIX ?= "img" | 8 | UBOOT_SUFFIX ?= "img" |
6 | SPL_BINARY ?= "MLO" | 9 | SPL_BINARY ?= "MLO" |