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