Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 1 | SUMMARY = "Phosphor Inventory Generation" |
| 2 | DESCRIPTION = "Generates inventory data from the machine readable workbook" |
| 3 | PR = "r1" |
| 4 | |
| 5 | S = "${WORKDIR}/git" |
| 6 | |
Matt Spinler | 6f5fba1 | 2016-09-13 16:20:01 -0500 | [diff] [blame] | 7 | PROVIDES += "virtual/obmc-inventory-data" |
| 8 | RPROVIDES_${PN} += "virtual-obmc-inventory-data" |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 9 | |
| 10 | inherit allarch |
| 11 | inherit obmc-phosphor-license |
| 12 | |
| 13 | DEPENDS += "mrw-native mrw-api-native" |
| 14 | |
| 15 | SRC_URI += "git://github.com/openbmc/phosphor-mrw-tools" |
Patrick Williams | c5c81b9 | 2016-09-20 15:40:04 -0500 | [diff] [blame] | 16 | SRCREV = "cb99d1ea2c77c704e7991733fa36848e211567af" |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 17 | |
| 18 | FILES_${PN} += "${datadir}/inventory" |
| 19 | |
| 20 | do_compile() { |
| 21 | ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ |
| 22 | -x ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml -o inventory.json |
| 23 | } |
| 24 | |
| 25 | do_install() { |
| 26 | install -d ${D}${datadir}/inventory |
| 27 | install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json |
| 28 | } |