summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/u-boot/u-boot-ti.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/u-boot/u-boot-ti.inc')
-rw-r--r--recipes-bsp/u-boot/u-boot-ti.inc12
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
3def 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
11UBOOT_LOCALVERSION = "-g${@get_git_revision('${S}').__str__()[:10]}"
12
1UBOOT_SUFFIX ?= "img" 13UBOOT_SUFFIX ?= "img"
2 14
3require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc 15require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc