diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/base.bbclass | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index c82dae83e8..0c2c546925 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -166,8 +166,29 @@ python base_eventhandler() { | |||
166 | 166 | ||
167 | if name.startswith("BuildStarted"): | 167 | if name.startswith("BuildStarted"): |
168 | bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) | 168 | bb.data.setVar( 'BB_VERSION', bb.__version__, e.data ) |
169 | statusvars = ['BB_VERSION', 'METADATA_BRANCH', 'METADATA_REVISION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'DISTRO_VERSION','TARGET_FPU'] | 169 | statusvars = ['BB_VERSION', 'TARGET_ARCH', 'TARGET_OS', 'MACHINE', 'DISTRO', 'DISTRO_VERSION','TARGET_FPU'] |
170 | statuslines = ["%-17s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] | 170 | statuslines = ["%-17s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars] |
171 | |||
172 | layers = (data.getVar("BBLAYERS", e.data, 1) or "").split() | ||
173 | layers_branch_rev = ["%-17s = \"%s:%s\"" % (os.path.basename(i), \ | ||
174 | base_get_metadata_git_branch(i, None).strip(), \ | ||
175 | base_get_metadata_git_revision(i, None)) \ | ||
176 | for i in layers] | ||
177 | i = len(layers_branch_rev)-1 | ||
178 | p1 = layers_branch_rev[i].find("=") | ||
179 | s1= layers_branch_rev[i][p1:] | ||
180 | while i > 0: | ||
181 | p2 = layers_branch_rev[i-1].find("=") | ||
182 | s2= layers_branch_rev[i-1][p2:] | ||
183 | if s1 == s2: | ||
184 | layers_branch_rev[i-1] = layers_branch_rev[i-1][0:p2] | ||
185 | i -= 1 | ||
186 | else: | ||
187 | i -= 1 | ||
188 | p1 = layers_branch_rev[i].find("=") | ||
189 | s1= layers_branch_rev[i][p1:] | ||
190 | |||
191 | statuslines += layers_branch_rev | ||
171 | statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines) | 192 | statusmsg = "\nOE Build Configuration:\n%s\n" % '\n'.join(statuslines) |
172 | print statusmsg | 193 | print statusmsg |
173 | 194 | ||