aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2016-03-11 21:49:14 -0500
committerMartin Jansa <Martin.Jansa@gmail.com>2020-09-16 15:24:49 +0200
commitaea5fb762510d7df039dbe815f424f7a97635ae5 (patch)
treec03cc59082a004753def25b922ea5404ada35180
parent89369838037f0022c7b912a4beb12d246370cc5f (diff)
downloadopenembedded-core-contrib-aea5fb762510d7df039dbe815f424f7a97635ae5.tar.gz
openembedded-core-contrib-aea5fb762510d7df039dbe815f424f7a97635ae5.tar.bz2
openembedded-core-contrib-aea5fb762510d7df039dbe815f424f7a97635ae5.zip
buildhistory.bbclass: metadata-revs show repo parent
Currently my build shows two "meta" repositories: one from meta-poky and one from openembedded-core. Have the code which prints the repositories into metadata-revs show the parent directories when repositories with multiple sub-layers are used. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta/classes/buildhistory.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 40b292b139..725015e49b 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -673,7 +673,7 @@ 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.basename(i), \
+ medadata_revs = ["%-17s = %s:%s" % (os.path.relpath(i, d.getVar('BBLAYERS_FETCH_DIR')), \
base_get_metadata_git_branch(i, None).strip(), \
base_get_metadata_git_revision(i, None)) \
for i in layers]