summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-core
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@us.ibm.com>2015-12-18 15:36:47 -0500
committerBrad Bishop <bradleyb@us.ibm.com>2015-12-18 15:36:47 -0500
commit2c4f8ad4403801f2daef4385079e4c5c682aa930 (patch)
treee37836031946e5a4e39dcfe7f130be2727019259 /meta-phosphor/common/recipes-core
parent6d6e571be255fe95b3c3eac31fca9666c10490a9 (diff)
downloadtalos-openbmc-2c4f8ad4403801f2daef4385079e4c5c682aa930.tar.gz
talos-openbmc-2c4f8ad4403801f2daef4385079e4c5c682aa930.zip
os-release VERSION always points at v0.1
Use git-describe rather than git-tag. Make os-release do_compile run every time.
Diffstat (limited to 'meta-phosphor/common/recipes-core')
-rw-r--r--meta-phosphor/common/recipes-core/os-release/os-release.bbappend3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-core/os-release/os-release.bbappend b/meta-phosphor/common/recipes-core/os-release/os-release.bbappend
index ba6a7721e..b112c50d9 100644
--- a/meta-phosphor/common/recipes-core/os-release/os-release.bbappend
+++ b/meta-phosphor/common/recipes-core/os-release/os-release.bbappend
@@ -6,7 +6,7 @@ def run_git(d, cmd):
pass
python() {
- version_id = run_git(d, 'tag')
+ version_id = run_git(d, 'describe --abbrev=0')
if version_id:
d.setVar('VERSION_ID', version_id)
@@ -16,3 +16,4 @@ python() {
}
OS_RELEASE_FIELDS_append = " BUILD_ID"
+do_compile[nostamp] = "1"
OpenPOWER on IntegriCloud