1SUMMARY = "Generate inventory map for phosphor-ipmi-host from a MRW."
2DEPENDS += "mrw-native mrw-perl-tools-native"
3DEPENDS += "virtual/phosphor-ipmi-fru-hostfw-config"
4PROVIDES += "virtual/phosphor-ipmi-fru-read-inventory"
5PV = "1.0+git${SRCPV}"
6PR = "r1"
7
8S = "${WORKDIR}/git"
9
10inherit phosphor-ipmi-host
11inherit mrw-xml
12inherit native
13
14do_install() {
15    DEST=${D}${config_datadir}
16    install -d ${DEST}
17    ${bindir}/perl-native/perl \
18        ${bindir}/gen_ipmi_fru.pl \
19        -i ${mrw_datadir}/${MRW_XML} \
20        -m ${hostfw_datadir}/config.yaml \
21        -o ${DEST}/config.yaml
22}
23
24require phosphor-ipmi-host.inc
25