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 |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 6 | inherit mrw-xml |
Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 7 | |
| 8 | require phosphor-ipmi-host.inc |
| 9 | |
| 10 | DEPENDS += "mrw-native mrw-perl-tools-native" |
| 11 | |
| 12 | DEPENDS += "virtual/phosphor-ipmi-fru-hostfw-config" |
| 13 | PROVIDES += "virtual/phosphor-ipmi-fru-read-inventory" |
| 14 | |
Marri Devender Rao | d2953df | 2017-07-05 12:19:52 -0500 | [diff] [blame] | 15 | S = "${WORKDIR}/git" |
| 16 | |
Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 17 | do_install() { |
| 18 | |
| 19 | DEST=${D}${config_datadir} |
| 20 | install -d ${DEST} |
| 21 | |
| 22 | ${bindir}/perl-native/perl \ |
| 23 | ${bindir}/gen_ipmi_fru.pl \ |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 24 | -i ${mrw_datadir}/${MRW_XML} \ |
Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 25 | -m ${hostfw_datadir}/config.yaml \ |
| 26 | -o ${DEST}/config.yaml |
| 27 | } |