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

install_openpower_plugins() {
    install ${S}/tools/dreport.d/openpower.d/plugins.d/* ${D}${dreport_plugin_dir}
}

#Link the plugins so that dreport can run them based on dump type
python link_openpower_plugins() {
    source = d.getVar('S', True)
    source_path = os.path.join(source, "tools", "dreport.d", "openpower.d", "plugins.d")
    op_plugins = os.listdir(source_path)
    for op_plugin in op_plugins:
        op_plugin_name = os.path.join(source_path, op_plugin)
        install_dreport_user_script("dreport.conf", op_plugin_name, d)
}

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

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