Brad Bishop | 30f7855 | 2017-01-28 12:51:42 -0500 | [diff] [blame] | 1 | SUMMARY = "Generate inventory map for phosphor-ipmi-fru from an MRW." |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit phosphor-ipmi-fru |
| 6 | |
| 7 | require phosphor-ipmi-fru.inc |
| 8 | |
| 9 | DEPENDS += "mrw-native mrw-perl-tools-native" |
| 10 | |
| 11 | # TODO: remove this dependency after the MRW script |
| 12 | # has been updated to not require the hostfw metadata. |
| 13 | DEPENDS += "virtual/phosphor-ipmi-fru-hostfw-config" |
| 14 | |
| 15 | PROVIDES += "virtual/phosphor-ipmi-fru-inventory" |
| 16 | |
| 17 | S = "${WORKDIR}/git" |
| 18 | do_install() { |
| 19 | |
| 20 | DEST=${D}${config_datadir} |
| 21 | install -d ${DEST} |
| 22 | |
| 23 | ${bindir}/perl-native/perl \ |
| 24 | ${bindir}/gen_ipmi_fru.pl \ |
| 25 | -i ${datadir}/obmc-mrw/${MACHINE}.xml \ |
| 26 | -m ${hostfw_datadir}/config.yaml \ |
| 27 | -o ${DEST}/config.yaml |
| 28 | } |