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 | |
| 7 | RPROVIDES_${PN} = "virtual-system-inventory-data" |
| 8 | |
| 9 | inherit allarch |
| 10 | inherit obmc-phosphor-license |
| 11 | |
| 12 | DEPENDS += "mrw-native mrw-api-native" |
| 13 | |
| 14 | SRC_URI += "git://github.com/openbmc/phosphor-mrw-tools" |
| 15 | SRCREV = "ab015d7e2a2eb87eab2ca7d731ebcb7a873442e9" |
| 16 | |
| 17 | FILES_${PN} += "${datadir}/inventory" |
| 18 | |
| 19 | do_compile() { |
| 20 | ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ |
| 21 | -x ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml -o inventory.json |
| 22 | } |
| 23 | |
| 24 | do_install() { |
| 25 | install -d ${D}${datadir}/inventory |
| 26 | install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json |
| 27 | } |