summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Shah <mshah@mvista.com>2021-01-06 19:08:37 +0530
committerSteve Sakoman <steve@sakoman.com>2021-03-05 04:40:01 -1000
commitb6d941126e92e26ae26cc4550c6849829eb88af9 (patch)
tree0db61f80c6e6f1836ac8e8e0b43d3a3fc62fc157
parent06d9fa9aa2935550f7967f84285b97e6c9a2cea1 (diff)
downloadopenembedded-core-contrib-b6d941126e92e26ae26cc4550c6849829eb88af9.tar.gz
openembedded-core-contrib-b6d941126e92e26ae26cc4550c6849829eb88af9.tar.bz2
openembedded-core-contrib-b6d941126e92e26ae26cc4550c6849829eb88af9.zip
report-error.bbclass: Add layer and bitbake version info to error report
Instead of just providing local.conf info, add layer names and their revisions with bitbake version information into error report makes it easier to understand and reproduce failed build. [YOCTO #9700] Signed-off-by: Milan Shah <mshah@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit a5afd7b1857c0012ab6e3d8bbafa67a96ff9e9e0) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/report-error.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 1a12db1206..9cb6b0bd31 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -6,6 +6,8 @@
#
# Licensed under the MIT license, see COPYING.MIT for details
+inherit base
+
ERR_REPORT_DIR ?= "${LOG_DIR}/error-report"
def errorreport_getdata(e):
@@ -64,6 +66,8 @@ python errorreport_handler () {
data['failures'] = []
data['component'] = " ".join(e.getPkgs())
data['branch_commit'] = str(base_detect_branch(e.data)) + ": " + str(base_detect_revision(e.data))
+ data['bitbake_version'] = e.data.getVar("BB_VERSION")
+ data['layer_version'] = get_layers_branch_rev(e.data)
data['local_conf'] = get_conf_data(e, 'local.conf')
data['auto_conf'] = get_conf_data(e, 'auto.conf')
lock = bb.utils.lockfile(datafile + '.lock')