summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb8
-rw-r--r--meta-tpm2/recipes-tpm/tpm2-tools/tpm2-tools_git.bb8
-rw-r--r--meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb8
3 files changed, 21 insertions, 3 deletions
diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb
index 22d1d45..ccb655a 100644
--- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb
+++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd_git.bb
@@ -12,7 +12,13 @@ SRC_URI += " \
12 file://tpm2-abrmd_git.default \ 12 file://tpm2-abrmd_git.default \
13 " 13 "
14 14
15SRCREV = "${AUTOREV}" 15def version_git(d):
16 version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
17 if version is not None and "git" in version:
18 return d.getVar("AUTOREV")
19 else:
20 return "cceb6c12ebb335aacb49207ee13d2f2fc833580a"
21SRCREV ?= '${@version_git(d)}'
16 22
17S = "${WORKDIR}/${BPN}" 23S = "${WORKDIR}/${BPN}"
18 24
diff --git a/meta-tpm2/recipes-tpm/tpm2-tools/tpm2-tools_git.bb b/meta-tpm2/recipes-tpm/tpm2-tools/tpm2-tools_git.bb
index c566526..7661623 100644
--- a/meta-tpm2/recipes-tpm/tpm2-tools/tpm2-tools_git.bb
+++ b/meta-tpm2/recipes-tpm/tpm2-tools/tpm2-tools_git.bb
@@ -9,7 +9,13 @@ PV = "${PVBASE}.${SRCPV}"
9 9
10SRC_URI = "git://github.com/tpm2-software/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN}" 10SRC_URI = "git://github.com/tpm2-software/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN}"
11 11
12SRCREV = "${AUTOREV}" 12def version_git(d):
13 version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
14 if version is not None and "git" in version:
15 return d.getVar("AUTOREV")
16 else:
17 return "e105149f07c9b944f69599ab67cd8b018ad880d2"
18SRCREV ?= '${@version_git(d)}'
13 19
14S = "${WORKDIR}/${BPN}" 20S = "${WORKDIR}/${BPN}"
15 21
diff --git a/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb
index eaeaec2..75683a4 100644
--- a/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb
+++ b/meta-tpm2/recipes-tpm/tpm2-tss/tpm2-tss_git.bb
@@ -13,7 +13,13 @@ PV = "${PVBASE}.${SRCPV}"
13 13
14SRC_URI = "git://github.com/tpm2-software/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN}" 14SRC_URI = "git://github.com/tpm2-software/${BPN}.git;protocol=git;branch=master;name=${BPN};destsuffix=${BPN}"
15 15
16SRCREV = "${AUTOREV}" 16def version_git(d):
17 version = d.getVar("PREFERRED_VERSION_%s" % d.getVar('PN'))
18 if version is not None and "git" in version:
19 return d.getVar("AUTOREV")
20 else:
21 return "35ab16e1d328f709d6146221a371b7341b84b670"
22SRCREV ?= '${@version_git(d)}'
17 23
18S = "${WORKDIR}/${BPN}" 24S = "${WORKDIR}/${BPN}"
19 25