commit | 9d5bfecaf57e3c2d3bad51e4cadc1e1a0c54cbe4 | [log] [tgz] |
---|---|---|
author | Patrick Rudolph <patrick.rudolph@9elements.com> | Tue Aug 29 11:29:27 2023 +0200 |
committer | Andrew Geissler <geissonator@yahoo.com> | Fri Sep 08 13:37:30 2023 +0000 |
tree | 305a6ac65c5bc7c30b2fddd074eee8b37bb9912d | |
parent | d74aed3c265dd3240c60f2b246492795df72050e [diff] |
meta-ibm/meta-genesis3: Fix inventory Fix commit 4f282598b1c60378a83d032bacd388ce74e80541 "meta-ibm/genesis3: Add inventory". Actually do generate an inventory based on added YAML. TEST: Verified that generated.cpp is not empty. Change-Id: Ia5c92894a573d6c5dad1db7473362130e966ee47 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/meta-ibm/meta-genesis3/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend b/meta-ibm/meta-genesis3/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend index 9cff727..28e459c 100644 --- a/meta-ibm/meta-genesis3/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend +++ b/meta-ibm/meta-genesis3/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend
@@ -1,7 +1 @@ -FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" - -SRC_URI:append = " file://inventory.yaml" - -do_install:append() { - install -D ${WORKDIR}/inventory.yaml ${D}${base_datadir}/events.d/inventory.yaml -} +DEPENDS:append = " static-inventory"
diff --git a/meta-ibm/meta-genesis3/recipes-phosphor/inventory/static-inventory.bb b/meta-ibm/meta-genesis3/recipes-phosphor/inventory/static-inventory.bb new file mode 100644 index 0000000..3a40203 --- /dev/null +++ b/meta-ibm/meta-genesis3/recipes-phosphor/inventory/static-inventory.bb
@@ -0,0 +1,17 @@ +SUMMARY = "Copy the static inventory yaml for inventory manager" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit allarch +inherit phosphor-inventory-manager + +S = "${WORKDIR}" + +SRC_URI = " file://static-inventory.yaml" + +do_install() { + install -D static-inventory.yaml ${D}${base_datadir}/events.d/static-inventory.yaml +} + +FILES:${PN} += "${base_datadir}/events.d/static-inventory.yaml"
diff --git a/meta-ibm/meta-genesis3/recipes-phosphor/inventory/phosphor-inventory-manager/inventory.yaml b/meta-ibm/meta-genesis3/recipes-phosphor/inventory/static-inventory/static-inventory.yaml similarity index 100% rename from meta-ibm/meta-genesis3/recipes-phosphor/inventory/phosphor-inventory-manager/inventory.yaml rename to meta-ibm/meta-genesis3/recipes-phosphor/inventory/static-inventory/static-inventory.yaml