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" |
Patrick Venture | 77d1439 | 2018-10-30 17:17:07 -0700 | [diff] [blame^] | 4 | PV = "1.0+git${SRCPV}" |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 5 | |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 6 | inherit mrw-xml |
| 7 | |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 8 | S = "${WORKDIR}/git" |
| 9 | |
Matt Spinler | 6f5fba1 | 2016-09-13 16:20:01 -0500 | [diff] [blame] | 10 | PROVIDES += "virtual/obmc-inventory-data" |
| 11 | RPROVIDES_${PN} += "virtual-obmc-inventory-data" |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 12 | |
| 13 | inherit allarch |
| 14 | inherit obmc-phosphor-license |
Patrick Williams | d30c929 | 2016-10-31 15:45:17 -0500 | [diff] [blame] | 15 | inherit mrw-rev |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 16 | |
| 17 | DEPENDS += "mrw-native mrw-api-native" |
| 18 | |
Patrick Williams | 4f02a45 | 2016-10-31 15:46:40 -0500 | [diff] [blame] | 19 | SRC_URI += "${MRW_TOOLS_SRC_URI}" |
| 20 | SRCREV = "${MRW_TOOLS_SRCREV}" |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 21 | |
| 22 | FILES_${PN} += "${datadir}/inventory" |
| 23 | |
| 24 | do_compile() { |
| 25 | ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 26 | -x ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} -o inventory.json |
Matt Spinler | 23f2883 | 2016-09-07 13:39:18 -0500 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | do_install() { |
| 30 | install -d ${D}${datadir}/inventory |
| 31 | install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json |
| 32 | } |