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 |
Patrick Williams | d30c929 | 2016-10-31 15:45:17 -0500 | [diff] [blame] | 12 | inherit mrw-rev |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 13 | |
| 14 | DEPENDS += "mrw-native mrw-api-native" |
| 15 | |
Patrick Williams | 4f02a45 | 2016-10-31 15:46:40 -0500 | [diff] [blame] | 16 | SRC_URI += "${MRW_TOOLS_SRC_URI}" |
| 17 | SRCREV = "${MRW_TOOLS_SRCREV}" |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 18 | |
| 19 | FILES_${PN} += "${datadir}/inventory" |
| 20 | |
| 21 | do_compile() { |
| 22 | ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ |
| 23 | -x ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml -o inventory.json |
| 24 | } |
| 25 | |
| 26 | do_install() { |
| 27 | install -d ${D}${datadir}/inventory |
| 28 | install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json |
| 29 | } |