Skip to contentSkip to conversation

report-error.bbclass: add site.conf/toolcfg.conf into error report

PATCH New Changqing Li 1 participant 1 message May 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 report-error.bbclass: add site.conf/toolcfg.conf into error report

We had add local.conf/auto.conf into error report to help more easy to reproduce a failure through error report, recently oe add a new default configuration file toolcfg.conf, this commit also add site.conf and toolcfg.conf in error report.

With this commit, the error report file will have the below snip:
[snip]

    "site_conf": "DL_DIR ?= \"/bitbake-setup/bitbake-builds/.bitbake-setup-downloads\"\nSSTATE_DIR ?= \"/bitbake-setup/bitbake-builds/.sstate-cache\"\nBB_HASHSERVE_DB_DIR ?= \"${SSTATE_DIR}\"\n",
    "target_sys": "x86_64-poky-linux",
    "toolcfg_conf": "OE_FRAGMENTS += \"distro/poky machine/qemux86-64\"\n"

[snip]

[YOCTO #13252]

---
 meta/classes/report-error.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/report-error.bbclass +2 -0
index 01ac1f2a37..ad31ac2583 100644
@@ -48,6 +48,8 @@ def get_common_data(e):
     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')
+    data['site_conf'] = get_conf_data(e, 'site.conf')
+    data['toolcfg_conf'] = get_conf_data(e, 'toolcfg.conf')
     return data
 
 python errorreport_handler () {
Signature · 1 line
2.34.1