diff options
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/inventory/obmc-inventory.bb')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/inventory/obmc-inventory.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/inventory/obmc-inventory.bb b/meta-phosphor/common/recipes-phosphor/inventory/obmc-inventory.bb new file mode 100644 index 0000000000..55cc501760 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/inventory/obmc-inventory.bb @@ -0,0 +1,27 @@ +SUMMARY = "Phosphor Inventory Generation" +DESCRIPTION = "Generates inventory data from the machine readable workbook" +PR = "r1" + +S = "${WORKDIR}/git" + +RPROVIDES_${PN} = "virtual-system-inventory-data" + +inherit allarch +inherit obmc-phosphor-license + +DEPENDS += "mrw-native mrw-api-native" + +SRC_URI += "git://github.com/openbmc/phosphor-mrw-tools" +SRCREV = "ab015d7e2a2eb87eab2ca7d731ebcb7a873442e9" + +FILES_${PN} += "${datadir}/inventory" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ + -x ${STAGING_DATADIR_NATIVE}/obmc-mrw/${MACHINE}.xml -o inventory.json +} + +do_install() { + install -d ${D}${datadir}/inventory + install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json +} |