summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru-read-inventory-mrw-native.bb
blob: 5b0ca6041b01155296f28f0c3911647be6137883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SUMMARY = "Generate inventory map for phosphor-ipmi-host from a MRW."
PR = "r1"

inherit native
inherit phosphor-ipmi-host

require phosphor-ipmi-host.inc

DEPENDS += "mrw-native mrw-perl-tools-native"

DEPENDS += "virtual/phosphor-ipmi-fru-hostfw-config"
PROVIDES += "virtual/phosphor-ipmi-fru-read-inventory"

S = "${WORKDIR}/git"

do_install() {

    DEST=${D}${config_datadir}
    install -d ${DEST}

    ${bindir}/perl-native/perl \
        ${bindir}/gen_ipmi_fru.pl \
        -i ${datadir}/obmc-mrw/${MACHINE}.xml \
        -m ${hostfw_datadir}/config.yaml \
        -o ${DEST}/config.yaml
}
OpenPOWER on IntegriCloud