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 | SRC_URI += "file://plugins.d/ibm_elogall" |
Matt Spinler | 06f97e4 | 2020-07-27 16:30:21 -0500 | [diff] [blame] | 10 | SRC_URI += "file://plugins.d/pels" |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 11 | |
| 12 | install_ibm_plugins() { |
| 13 | |
| 14 | install -m 0755 ${WORKDIR}/plugins.d/ibm_elogall ${D}${dreport_plugin_dir} |
Matt Spinler | 06f97e4 | 2020-07-27 16:30:21 -0500 | [diff] [blame] | 15 | install -m 0755 ${WORKDIR}/plugins.d/pels ${D}${dreport_plugin_dir} |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 16 | |
| 17 | } |
| 18 | |
| 19 | #Link in the plugins so dreport run them at the appropriate time |
| 20 | python link_ibm_plugins() { |
| 21 | |
| 22 | workdir = d.getVar('WORKDIR', True) |
| 23 | script = os.path.join(workdir, 'plugins.d', 'ibm_elogall') |
| 24 | install_dreport_user_script(script, d) |
Matt Spinler | 06f97e4 | 2020-07-27 16:30:21 -0500 | [diff] [blame] | 25 | |
| 26 | script = os.path.join(workdir, 'plugins.d', 'pels') |
| 27 | install_dreport_user_script(script, d) |
Matt Spinler | b9e821a | 2018-03-29 16:34:38 -0500 | [diff] [blame] | 28 | } |
| 29 | |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 30 | #Install dump header script from dreport/ibm.d to dreport/include.d |
| 31 | install_dreport_header() { |
| 32 | install -d ${D}${dreport_include_dir} |
PriyangaRamasamy | bcbcea8 | 2021-03-02 22:49:05 -0600 | [diff] [blame] | 33 | 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] | 34 | } |
| 35 | |
PriyangaRamasamy | 2e8e014 | 2021-03-02 23:01:04 -0600 | [diff] [blame] | 36 | #Install ibm bad vpd script from dreport/ibm.d to dreport/plugins.d |
| 37 | install_ibm_bad_vpd() { |
| 38 | install -d ${D}${dreport_plugin_dir} |
| 39 | install -m 0755 ${S}/tools/dreport.d/ibm.d/badvpd ${D}${dreport_plugin_dir} |
| 40 | } |
| 41 | |
| 42 | #Link in the plugins so dreport run them at the appropriate time based on the plugin type |
| 43 | python link_ibm_bad_vpd() { |
| 44 | sourcedir = d.getVar('S', True) |
| 45 | script = os.path.join(sourcedir, "tools", "dreport.d", "ibm.d", "badvpd") |
| 46 | install_dreport_user_script(script, d) |
| 47 | } |
| 48 | |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 49 | IBM_INSTALL_POSTFUNCS = "install_ibm_plugins link_ibm_plugins" |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 50 | IBM_INSTALL_POSTFUNCS:p10bmc += "install_dreport_header install_ibm_bad_vpd link_ibm_bad_vpd" |
Chirag Sharma | 4b5211d | 2020-09-29 08:18:17 -0500 | [diff] [blame] | 51 | |
| 52 | do_install[postfuncs] += "${IBM_INSTALL_POSTFUNCS}" |