Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" |
Brad Bishop | e161514 | 2020-04-22 14:06:02 -0400 | [diff] [blame] | 2 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 3 | PACKAGECONFIG:append:p10bmc = " host-dump-transport-pldm" |
| 4 | PACKAGECONFIG:append:witherspoon-tacoma = " host-dump-transport-pldm" |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 5 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 6 | PACKAGECONFIG:append:p10bmc = " openpower-dumps-extension" |
| 7 | PACKAGECONFIG:append:witherspoon-tacoma = " openpower-dumps-extension" |
Dhruvaraj Subhashchandran | 21ebf78 | 2020-09-24 01:33:00 -0500 | [diff] [blame] | 8 | |
Dhruvaraj Subhashchandran | 26fb25b | 2022-01-18 07:07:18 -0600 | [diff] [blame] | 9 | SYSTEMD_SERVICE:${PN}-manager:p10bmc += "clear_hostdumps_poweroff.service" |
Andrew Geissler | 4d38aa9 | 2023-01-23 16:10:25 -0600 | [diff] [blame] | 10 | SYSTEMD_SERVICE:${PN}-manager:witherspoon-tacoma += "clear_hostdumps_poweroff.service" |
Dhruvaraj Subhashchandran | 26fb25b | 2022-01-18 07:07:18 -0600 | [diff] [blame] | 11 | |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 12 | install_ibm_plugins() { |
Marri Devender Rao | ce928ac | 2022-04-08 08:54:38 -0500 | [diff] [blame] | 13 | install ${S}/tools/dreport.d/ibm.d/plugins.d/* ${D}${dreport_plugin_dir}/ |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | #Link in the plugins so dreport run them at the appropriate time |
| 17 | python link_ibm_plugins() { |
Marri Devender Rao | ce928ac | 2022-04-08 08:54:38 -0500 | [diff] [blame] | 18 | source = d.getVar('S', True) |
| 19 | source_path = os.path.join(source, "tools", "dreport.d", "ibm.d", "plugins.d") |
| 20 | op_plugins = os.listdir(source_path) |
| 21 | for op_plugin in op_plugins: |
| 22 | op_plugin_name = os.path.join(source_path, op_plugin) |
| 23 | install_dreport_user_script(op_plugin_name, d) |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 24 | } |
| 25 | |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 26 | #Install dump header script from dreport/ibm.d to dreport/include.d |
| 27 | install_dreport_header() { |
| 28 | install -d ${D}${dreport_include_dir} |
PriyangaRamasamy | bcbcea8 | 2021-03-02 22:49:05 -0600 | [diff] [blame] | 29 | install -m 0755 ${S}/tools/dreport.d/ibm.d/gendumpheader ${D}${dreport_include_dir}/ |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | IBM_INSTALL_POSTFUNCS = "install_ibm_plugins link_ibm_plugins" |
Marri Devender Rao | ce928ac | 2022-04-08 08:54:38 -0500 | [diff] [blame] | 33 | IBM_INSTALL_POSTFUNCS:p10bmc += "install_dreport_header" |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 34 | |
| 35 | do_install[postfuncs] += "${IBM_INSTALL_POSTFUNCS}" |