diff options
author | Denys Dmytriyenko <denys@ti.com> | 2016-04-28 21:39:04 +0000 |
---|---|---|
committer | Denys Dmytriyenko <denys@ti.com> | 2016-04-28 15:00:11 -0400 |
commit | a7e4b9560aaa9476e86e507132cc8705a4026db6 (patch) | |
tree | 56a7499ea2545c25148e88c79e0b304d7657ffd0 /recipes-bsp/u-boot/u-boot-ti.inc | |
parent | ed03cab5fb9f85d9874b819eeb9b072e965b3b66 (diff) | |
download | meta-ti-a7e4b9560aaa9476e86e507132cc8705a4026db6.tar.gz |
u-boot-ti-staging: add version 2016.05 (rc1)
Set UBOOT_LOCALVERSION by default similar to KERNEL_LOCALVERSION
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-ti.inc')
-rw-r--r-- | recipes-bsp/u-boot/u-boot-ti.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot-ti.inc b/recipes-bsp/u-boot/u-boot-ti.inc index 0cb53ea9..b0054c96 100644 --- a/recipes-bsp/u-boot/u-boot-ti.inc +++ b/recipes-bsp/u-boot/u-boot-ti.inc | |||
@@ -1,3 +1,15 @@ | |||
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 | ||
3 | def get_git_revision(p): | ||
4 | import subprocess | ||
5 | |||
6 | try: | ||
7 | return subprocess.Popen("git rev-parse HEAD 2>/dev/null ", cwd=p, shell=True, stdout=subprocess.PIPE).communicate()[0].rstrip() | ||
8 | except OSError: | ||
9 | return None | ||
10 | |||
11 | UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}" | ||
12 | |||
1 | UBOOT_SUFFIX ?= "img" | 13 | UBOOT_SUFFIX ?= "img" |
2 | 14 | ||
3 | require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc | 15 | require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc |