aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2016-03-12 21:35:29 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2018-11-25 09:08:33 +0000
commit29e8ab468020c192f9106e60423129529905636a (patch)
tree40331eb9478dfeb5295c2fed096074ec94ad76d2 /meta/classes/buildhistory.bbclass
parent933594b15984fa61688d2008044156431c43fdab (diff)
downloadopenembedded-core-contrib-29e8ab468020c192f9106e60423129529905636a.tar.gz
openembedded-core-contrib-29e8ab468020c192f9106e60423129529905636a.tar.bz2
openembedded-core-contrib-29e8ab468020c192f9106e60423129529905636a.zip
metadata-revs: provide more information
Provide many more details concerning the repositories that are used in a particular build: the remote information, the layer, the local branch, the remote branch the local branch tracks (if any), and the HEAD commit. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index c8dfe448ad..01b8ff2659 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -672,8 +672,11 @@ def buildhistory_get_build_id(d):
def buildhistory_get_metadata_revs(d):
# We want an easily machine-readable format here, so get_layers_branch_rev isn't quite what we want
layers = (d.getVar("BBLAYERS") or "").split()
- medadata_revs = ["%-17s = %s:%s" % (os.path.relpath(i, d.getVar('BBLAYERS_FETCH_DIR')), \
+ medadata_revs = ["%s\tlayer: %s\n\tbranch: %s\n\tremote: %s\n\tHEAD: %s\n" % ( \
+ base_get_metadata_git_remote(i, None), \
+ os.path.relpath(i, d.getVar('BBLAYERS_FETCH_DIR')), \
base_get_metadata_git_branch(i, None).strip(), \
+ base_get_metadata_git_remote_branch(i, None).strip(), \
base_get_metadata_git_revision(i, None)) \
for i in layers]
return '\n'.join(medadata_revs)