diff options
Diffstat (limited to 'meta-facebook')
-rw-r--r-- | meta-facebook/recipes-phosphor/sensors/phosphor-nvme/tiogapass/nvme_config.json | 36 | ||||
-rw-r--r-- | meta-facebook/recipes-phosphor/sensors/phosphor-nvme_%.bbappend | 8 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-facebook/recipes-phosphor/sensors/phosphor-nvme/tiogapass/nvme_config.json b/meta-facebook/recipes-phosphor/sensors/phosphor-nvme/tiogapass/nvme_config.json new file mode 100644 index 000000000..fefa711cc --- /dev/null +++ b/meta-facebook/recipes-phosphor/sensors/phosphor-nvme/tiogapass/nvme_config.json @@ -0,0 +1,36 @@ +{ + "config": [ + { + "NVMeDriveIndex": 0, + "NVMeDriveBusID": 20 + }, + { + "NVMeDriveIndex": 1, + "NVMeDriveBusID": 21 + }, + { + "NVMeDriveIndex": 4, + "NVMeDriveBusID": 24 + }, + { + "NVMeDriveIndex": 5, + "NVMeDriveBusID": 25 + }, + { + "NVMeDriveIndex": 6, + "NVMeDriveBusID": 26 + }, + { + "NVMeDriveIndex": 7, + "NVMeDriveBusID": 27 + } + ], + "threshold": [ + { + "criticalHigh": 75, + "criticalLow": 0, + "maxValue": 127, + "minValue": -127 + } + ] +} diff --git a/meta-facebook/recipes-phosphor/sensors/phosphor-nvme_%.bbappend b/meta-facebook/recipes-phosphor/sensors/phosphor-nvme_%.bbappend new file mode 100644 index 000000000..95a590704 --- /dev/null +++ b/meta-facebook/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 +} |