From af693d535558b655f6ef0d2f2f3d3a1c62b4b65e Mon Sep 17 00:00:00 2001 From: George Hung Date: Thu, 21 May 2020 21:16:27 +0800 Subject: 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 Change-Id: I7ae44086eba26ddd0fe7eca2b5f18cf78401c6f1 Signed-off-by: Andrew Geissler --- .../ipmi/phosphor-ipmi-blobs-binarystore/config.json | 5 +++++ .../ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore/config.json create mode 100644 meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend (limited to 'meta-quanta') 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 000000000..4ad11bc6e --- /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 000000000..1dba2ec35 --- /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 +} -- cgit v1.2.3