summaryrefslogtreecommitdiff
path: root/meta-openpower/recipes-phosphor/dump/phosphor-debug-collector_%.bbappend
blob: 00b9eadfc600e8ab0453ac5fba369c18bab45692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://plugins.d/guard"

install_openpower_plugins() {
    install -m 0755 ${WORKDIR}/plugins.d/guard ${D}${dreport_plugin_dir}
}

#Link in the plugins so dreport run them at the appropriate time
python link_openpower_plugins() {
    workdir = d.getVar('WORKDIR', True)
    script = os.path.join(workdir, 'plugins.d', 'guard')
    install_dreport_user_script(script, d)
}

DEBUG_COLLECTOR_INSTALL_POSTFUNCS ?= ""
DEBUG_COLLECTOR_INSTALL_POSTFUNCS:df-openpower ?= "install_openpower_plugins link_openpower_plugins"

do_install[postfuncs] += "${DEBUG_COLLECTOR_INSTALL_POSTFUNCS}"