meta-ibm/meta-sbp1/recipes-phosphor: Fix inventory

Fix commit d7191a5492f3a6864a28806cf8ea2d21e5482499
"meta-ibm/sbp1: Add inventory".

Actually do generate an inventory based on added YAML.

TEST: Verified that generated.cpp is not empty.

Change-Id: Ib626f3777ba1db29dfee653b487256a5bed4f592
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/meta-ibm/meta-sbp1/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend b/meta-ibm/meta-sbp1/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend
index 9cff727..28e459c 100644
--- a/meta-ibm/meta-sbp1/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend
+++ b/meta-ibm/meta-sbp1/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-sbp1/recipes-phosphor/inventory/static-inventory.bb b/meta-ibm/meta-sbp1/recipes-phosphor/inventory/static-inventory.bb
new file mode 100644
index 0000000..3a40203
--- /dev/null
+++ b/meta-ibm/meta-sbp1/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-sbp1/recipes-phosphor/inventory/phosphor-inventory-manager/inventory.yaml b/meta-ibm/meta-sbp1/recipes-phosphor/inventory/static-inventory/static-inventory.yaml
similarity index 100%
rename from meta-ibm/meta-sbp1/recipes-phosphor/inventory/phosphor-inventory-manager/inventory.yaml
rename to meta-ibm/meta-sbp1/recipes-phosphor/inventory/static-inventory/static-inventory.yaml