meta-ieisystems: fp5280g3: Add SDR inventory

Add SDR inventory to parse the fp5280g3 device, map SDR data with
inventory information and report SDR content through IPMI.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ie2054b982c30ccbfca9320873e1bfdd5213a76b2
diff --git a/meta-ieisystems/meta-fp5280g3/recipes-phosphor/configuration/fp5280g3-yaml-config.bb b/meta-ieisystems/meta-fp5280g3/recipes-phosphor/configuration/fp5280g3-yaml-config.bb
new file mode 100644
index 0000000..cc872bd
--- /dev/null
+++ b/meta-ieisystems/meta-fp5280g3/recipes-phosphor/configuration/fp5280g3-yaml-config.bb
@@ -0,0 +1,38 @@
+SUMMARY = "YAML configuration for FP5280G3"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit allarch
+
+SRC_URI = " \
+        file://fp5280g3-ipmi-fru.yaml \
+        file://fp5280g3-ipmi-fru-properties.yaml \
+        file://fp5280g3-ipmi-inventory-sensors.yaml \
+        file://fp5280g3-ipmi-sensors.yaml \
+        "
+
+S = "${WORKDIR}"
+
+do_install() {
+    cat fp5280g3-ipmi-fru.yaml > fru-read.yaml
+
+    install -m 0644 -D fp5280g3-ipmi-fru-properties.yaml \
+        ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
+    install -m 0644 -D fru-read.yaml \
+        ${D}${datadir}/${BPN}/ipmi-fru-read.yaml
+    install -m 0644 -D fp5280g3-ipmi-inventory-sensors.yaml \
+        ${D}${datadir}/${BPN}/ipmi-inventory-sensors.yaml
+    install -m 0644 -D fp5280g3-ipmi-sensors.yaml \
+        ${D}${datadir}/${BPN}/ipmi-sensors.yaml
+}
+
+FILES:${PN}-dev = " \
+        ${datadir}/${BPN}/ipmi-extra-properties.yaml \
+        ${datadir}/${BPN}/ipmi-fru-read.yaml \
+        ${datadir}/${BPN}/ipmi-inventory-sensors.yaml \
+        ${datadir}/${BPN}/ipmi-sensors.yaml \
+        "
+
+ALLOW_EMPTY:${PN} = "1"
+