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