diff options
Diffstat (limited to 'meta-ti-bsp/recipes-bsp')
-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 855307d9..2c0d4fc4 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" |