meta-facebook: sensors: Add nvme sensors
Added phosphor nvme sensors for tiogapass platform to read
ssd cards sensors over NVME-MI interface.
Change-Id: I11f92d693257a76cd6c772b05d92ce7df8308721
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
diff --git a/recipes-phosphor/sensors/phosphor-nvme_%.bbappend b/recipes-phosphor/sensors/phosphor-nvme_%.bbappend
new file mode 100644
index 0000000..95a5907
--- /dev/null
+++ b/recipes-phosphor/sensors/phosphor-nvme_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/${MACHINE}:"
+
+SRC_URI_append = " file://nvme_config.json"
+
+do_install_append() {
+ install -m 0644 -D ${WORKDIR}/nvme_config.json \
+ ${D}/etc/nvme
+}