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 | |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 9 | install_ibm_plugins() { |
Marri Devender Rao | ce928ac | 2022-04-08 08:54:38 -0500 | [diff] [blame] | 10 | 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] | 11 | } |
| 12 | |
| 13 | #Link in the plugins so dreport run them at the appropriate time |
| 14 | python link_ibm_plugins() { |
Marri Devender Rao | ce928ac | 2022-04-08 08:54:38 -0500 | [diff] [blame] | 15 | source = d.getVar('S', True) |
| 16 | source_path = os.path.join(source, "tools", "dreport.d", "ibm.d", "plugins.d") |
| 17 | op_plugins = os.listdir(source_path) |
| 18 | for op_plugin in op_plugins: |
| 19 | op_plugin_name = os.path.join(source_path, op_plugin) |
| 20 | install_dreport_user_script(op_plugin_name, d) |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 21 | } |
| 22 | |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 23 | #Install dump header script from dreport/ibm.d to dreport/include.d |
| 24 | install_dreport_header() { |
| 25 | install -d ${D}${dreport_include_dir} |
PriyangaRamasamy | bcbcea8 | 2021-03-02 22:49:05 -0600 | [diff] [blame] | 26 | 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] | 27 | } |
| 28 | |
| 29 | IBM_INSTALL_POSTFUNCS = "install_ibm_plugins link_ibm_plugins" |
Marri Devender Rao | ce928ac | 2022-04-08 08:54:38 -0500 | [diff] [blame] | 30 | IBM_INSTALL_POSTFUNCS:p10bmc += "install_dreport_header" |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 31 | |
| 32 | do_install[postfuncs] += "${IBM_INSTALL_POSTFUNCS}" |