meta-quanta: gbs: add binarystore config file

Set eeprom path and offset of the config file

(From meta-quanta rev: d60e18101c6ddff8246a964e3cd560a7708f2bfa)

Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I7ae44086eba26ddd0fe7eca2b5f18cf78401c6f1
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore/config.json b/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore/config.json
new file mode 100644
index 0000000..4ad11bc
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore/config.json
@@ -0,0 +1,5 @@
+[{
+  "blobBaseId": "/skm/hss/",
+  "sysFilePath": "/sys/class/i2c-adapter/i2c-5/5-0050/5-00500/nvmem",
+  "offsetBytes": 256
+}]
diff --git a/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend b/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend
new file mode 100644
index 0000000..1dba2ec
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:"
+SRC_URI_append_gbs = " file://config.json"
+FILES_${PN}_append_gbs = " ${datadir}/binaryblob/config.json"
+
+do_install_append_gbs() {
+    install -d ${D}${datadir}/binaryblob/
+    install ${WORKDIR}/config.json ${D}${datadir}/binaryblob/config.json
+}