From 4082cec4dc74a80680ca3ba8e1a0da2db6da4a08 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Thu, 11 Oct 2018 19:29:10 -0700 Subject: meta-phosphor: obmc-inventory: rename as git obmc-inventory receives its source from mrw-rev.bbclass which is git-based. (From meta-phosphor rev: edb73f7ae1ab59c60823ea9708c8efcd8ce0e580) Change-Id: Icbfd238805e3f8f27c94068f76dbe6b25bf2b12f Signed-off-by: Patrick Venture Signed-off-by: Brad Bishop --- .../recipes-phosphor/inventory/obmc-inventory.bb | 31 ---------------------- .../inventory/obmc-inventory_git.bb | 31 ++++++++++++++++++++++ 2 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 meta-phosphor/recipes-phosphor/inventory/obmc-inventory.bb create mode 100644 meta-phosphor/recipes-phosphor/inventory/obmc-inventory_git.bb diff --git a/meta-phosphor/recipes-phosphor/inventory/obmc-inventory.bb b/meta-phosphor/recipes-phosphor/inventory/obmc-inventory.bb deleted file mode 100644 index db3a5b404..000000000 --- a/meta-phosphor/recipes-phosphor/inventory/obmc-inventory.bb +++ /dev/null @@ -1,31 +0,0 @@ -SUMMARY = "Phosphor Inventory Generation" -DESCRIPTION = "Generates inventory data from the machine readable workbook" -PR = "r1" - -inherit mrw-xml - -S = "${WORKDIR}/git" - -PROVIDES += "virtual/obmc-inventory-data" -RPROVIDES_${PN} += "virtual-obmc-inventory-data" - -inherit allarch -inherit obmc-phosphor-license -inherit mrw-rev - -DEPENDS += "mrw-native mrw-api-native" - -SRC_URI += "${MRW_TOOLS_SRC_URI}" -SRCREV = "${MRW_TOOLS_SRCREV}" - -FILES_${PN} += "${datadir}/inventory" - -do_compile() { - ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ - -x ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} -o inventory.json -} - -do_install() { - install -d ${D}${datadir}/inventory - install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json -} diff --git a/meta-phosphor/recipes-phosphor/inventory/obmc-inventory_git.bb b/meta-phosphor/recipes-phosphor/inventory/obmc-inventory_git.bb new file mode 100644 index 000000000..db3a5b404 --- /dev/null +++ b/meta-phosphor/recipes-phosphor/inventory/obmc-inventory_git.bb @@ -0,0 +1,31 @@ +SUMMARY = "Phosphor Inventory Generation" +DESCRIPTION = "Generates inventory data from the machine readable workbook" +PR = "r1" + +inherit mrw-xml + +S = "${WORKDIR}/git" + +PROVIDES += "virtual/obmc-inventory-data" +RPROVIDES_${PN} += "virtual-obmc-inventory-data" + +inherit allarch +inherit obmc-phosphor-license +inherit mrw-rev + +DEPENDS += "mrw-native mrw-api-native" + +SRC_URI += "${MRW_TOOLS_SRC_URI}" +SRCREV = "${MRW_TOOLS_SRCREV}" + +FILES_${PN} += "${datadir}/inventory" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/perl-native/perl ${S}/inventory.pl \ + -x ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} -o inventory.json +} + +do_install() { + install -d ${D}${datadir}/inventory + install -m 0644 inventory.json ${D}${datadir}/inventory/inventory.json +} -- cgit v1.2.1