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