blob: df135f47f6e71accb0b00f9f3b7c47c05b3fce5b [file] [log] [blame]
Adriana Kobylakb96c7502021-08-06 16:25:30 +00001FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
Brad Bishope1615142020-04-22 14:06:02 -04002
Adriana Kobylakb96c7502021-08-06 16:25:30 +00003PACKAGECONFIG:append:p10bmc = " host-dump-transport-pldm"
4PACKAGECONFIG:append:witherspoon-tacoma = " host-dump-transport-pldm"
Matt Spinlerb9e821a2018-03-29 16:34:38 -05005
Adriana Kobylakb96c7502021-08-06 16:25:30 +00006PACKAGECONFIG:append:p10bmc = " openpower-dumps-extension"
7PACKAGECONFIG:append:witherspoon-tacoma = " openpower-dumps-extension"
Dhruvaraj Subhashchandran21ebf782020-09-24 01:33:00 -05008
Dhruvaraj Subhashchandran26fb25b2022-01-18 07:07:18 -06009SYSTEMD_SERVICE:${PN}-manager:p10bmc += "clear_hostdumps_poweroff.service"
Andrew Geissler4d38aa92023-01-23 16:10:25 -060010SYSTEMD_SERVICE:${PN}-manager:witherspoon-tacoma += "clear_hostdumps_poweroff.service"
Dhruvaraj Subhashchandran26fb25b2022-01-18 07:07:18 -060011
Dhruvaraj Subhashchandranc9f5e242023-02-16 08:42:35 -060012EXTRA_OEMESON:append:p10bmc = " -DBMC_DUMP_TOTAL_SIZE=409600"
Chirag Sharma27affeb2023-03-28 01:33:52 -050013EXTRA_OEMESON:append:p10bmc = " -DBMC_DUMP_MAX_SIZE=20480"
Dhruvaraj Subhashchandranc9f5e242023-02-16 08:42:35 -060014
Matt Spinlerb9e821a2018-03-29 16:34:38 -050015install_ibm_plugins() {
Marri Devender Raoce928ac2022-04-08 08:54:38 -050016 install ${S}/tools/dreport.d/ibm.d/plugins.d/* ${D}${dreport_plugin_dir}/
Matt Spinlerb9e821a2018-03-29 16:34:38 -050017}
18
19#Link in the plugins so dreport run them at the appropriate time
20python link_ibm_plugins() {
Marri Devender Raoce928ac2022-04-08 08:54:38 -050021 source = d.getVar('S', True)
22 source_path = os.path.join(source, "tools", "dreport.d", "ibm.d", "plugins.d")
23 op_plugins = os.listdir(source_path)
24 for op_plugin in op_plugins:
25 op_plugin_name = os.path.join(source_path, op_plugin)
26 install_dreport_user_script(op_plugin_name, d)
Matt Spinlerb9e821a2018-03-29 16:34:38 -050027}
28
Chirag Sharma4b5211d2020-09-29 08:18:17 -050029#Install dump header script from dreport/ibm.d to dreport/include.d
30install_dreport_header() {
31 install -d ${D}${dreport_include_dir}
PriyangaRamasamybcbcea82021-03-02 22:49:05 -060032 install -m 0755 ${S}/tools/dreport.d/ibm.d/gendumpheader ${D}${dreport_include_dir}/
Chirag Sharma4b5211d2020-09-29 08:18:17 -050033}
34
35IBM_INSTALL_POSTFUNCS = "install_ibm_plugins link_ibm_plugins"
Chirag Sharma857f0862023-04-18 00:37:40 -050036IBM_INSTALL_POSTFUNCS:append:p10bmc = " install_dreport_header"
Chirag Sharma4b5211d2020-09-29 08:18:17 -050037
38do_install[postfuncs] += "${IBM_INSTALL_POSTFUNCS}"