diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-09 11:52:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-11 10:30:57 +0100 |
commit | 38a9622ba35f674f66bc9e74512805f4834b606d (patch) | |
tree | 1f28ec109f11b51863e3f551b470addaf896212c /meta/classes/image-buildinfo.bbclass | |
parent | 3ae4dd140a76acb64d776be925f5e56ac67746e0 (diff) | |
download | poky-38a9622ba35f674f66bc9e74512805f4834b606d.tar.gz |
base/buildhistory/image-buildinfo: Use common buildcfg function
Reduce code duplication to a common function in oe.buildcfg.
(From OE-Core rev: 0b191a1df4c3722defb09dde0c16b1d9e7fe7ef6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image-buildinfo.bbclass')
-rw-r--r-- | meta/classes/image-buildinfo.bbclass | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/image-buildinfo.bbclass b/meta/classes/image-buildinfo.bbclass index c149660f31..d4a12b5e10 100644 --- a/meta/classes/image-buildinfo.bbclass +++ b/meta/classes/image-buildinfo.bbclass | |||
@@ -28,12 +28,8 @@ def image_buildinfo_outputvars(vars, d): | |||
28 | 28 | ||
29 | # Returns layer revisions along with their respective status | 29 | # Returns layer revisions along with their respective status |
30 | def get_layer_revs(d): | 30 | def get_layer_revs(d): |
31 | layers = (d.getVar("BBLAYERS") or "").split() | 31 | revisions = oe.buildcfg.get_layer_revisions(d) |
32 | medadata_revs = ["%-17s = %s:%s %s" % (os.path.basename(i), \ | 32 | medadata_revs = ["%-17s = %s:%s%s" % (r[1], r[2], r[3], r[4]) for r in revisions] |
33 | oe.buildcfg.get_metadata_git_branch(i, None).strip(), \ | ||
34 | oe.buildcfg.get_metadata_git_revision(i, None), \ | ||
35 | oe.buildcfg.is_layer_modified(i)) \ | ||
36 | for i in layers] | ||
37 | return '\n'.join(medadata_revs) | 33 | return '\n'.join(medadata_revs) |
38 | 34 | ||
39 | def buildinfo_target(d): | 35 | def buildinfo_target(d): |