diff mbox series

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

Message ID 20260515083750.2884492-1-changqing.li@windriver.com
State New
Headers show
Series report-error.bbclass: add site.conf/toolcfg.conf into error report | expand

Commit Message

Changqing Li May 15, 2026, 8:37 a.m. UTC
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]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 meta/classes/report-error.bbclass | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass
index 01ac1f2a37..ad31ac2583 100644
--- a/meta/classes/report-error.bbclass
+++ b/meta/classes/report-error.bbclass
@@ -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 () {