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 <[email protected]>
---
 meta/classes/report-error.bbclass | 2 ++
 1 file changed, 2 insertions(+)

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 () {
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237069): 
https://lists.openembedded.org/g/openembedded-core/message/237069
Mute This Topic: https://lists.openembedded.org/mt/119326707/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to