diff options
Diffstat (limited to 'meta/lib/oe/buildcfg.py')
-rw-r--r-- | meta/lib/oe/buildcfg.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oe/buildcfg.py b/meta/lib/oe/buildcfg.py index 364c40a2f0..90f5e05715 100644 --- a/meta/lib/oe/buildcfg.py +++ b/meta/lib/oe/buildcfg.py | |||
@@ -40,3 +40,10 @@ def is_layer_modified(path): | |||
40 | # (expected) return code 1 in a modified git repo. For example, we get | 40 | # (expected) return code 1 in a modified git repo. For example, we get |
41 | # output and a 129 return code when a layer isn't a git repo at all. | 41 | # output and a 129 return code when a layer isn't a git repo at all. |
42 | return " -- modified" | 42 | return " -- modified" |
43 | |||
44 | def get_layer_revisions(d): | ||
45 | layers = (d.getVar("BBLAYERS") or "").split() | ||
46 | revisions = [] | ||
47 | for i in layers: | ||
48 | revisions.append((i, os.path.basename(i), get_metadata_git_branch(i, None).strip(), get_metadata_git_revision(i, None), is_layer_modified(i))) | ||
49 | return revisions | ||