Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 1 | SUMMARY = "Generate inventory map for phosphor-ipmi-host from a MRW." |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit phosphor-ipmi-host |
| 6 | |
| 7 | require phosphor-ipmi-host.inc |
| 8 | |
| 9 | DEPENDS += "mrw-native mrw-perl-tools-native" |
| 10 | |
| 11 | DEPENDS += "virtual/phosphor-ipmi-fru-hostfw-config" |
| 12 | PROVIDES += "virtual/phosphor-ipmi-fru-read-inventory" |
| 13 | |
Marri Devender Rao | d2953df | 2017-07-05 12:19:52 -0500 | [diff] [blame] | 14 | S = "${WORKDIR}/git" |
| 15 | |
Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 16 | do_install() { |
| 17 | |
| 18 | DEST=${D}${config_datadir} |
| 19 | install -d ${DEST} |
| 20 | |
| 21 | ${bindir}/perl-native/perl \ |
| 22 | ${bindir}/gen_ipmi_fru.pl \ |
| 23 | -i ${datadir}/obmc-mrw/${MACHINE}.xml \ |
| 24 | -m ${hostfw_datadir}/config.yaml \ |
| 25 | -o ${DEST}/config.yaml |
| 26 | } |