fp5280g2: Add occ sensors
Tested: booted a fp5280g2,manually binded the OCC driver when OCC activated,
and saw core-temp,dimm-temp and power sensors via REST API.
(From meta-inspur rev: f24af46e265e6541f26fb88c650e5ef681e51898)
Signed-off-by: John Wang <wangzqbj@inspur.com>
Change-Id: I5b99d406159b080a2d6be53f23250ef356e8bfe2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/occ/fp5280g2-occ-control-config-native.bb b/meta-inspur/meta-fp5280g2/recipes-phosphor/occ/fp5280g2-occ-control-config-native.bb
new file mode 100644
index 0000000..ba31df3
--- /dev/null
+++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/occ/fp5280g2-occ-control-config-native.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Fp5280g2 OCC Control sensor IDs"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${INSPURBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
+
+inherit native
+inherit openpower-occ-control
+
+SRC_URI += "file://occ_sensor.yaml"
+
+PROVIDES += "virtual/openpower-occ-control-config-native"
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -d ${YAML_DEST}/
+ install -D occ_sensor.yaml ${YAML_DEST}/occ_sensor.yaml
+}