meta-nicole: Add initial setup for OCC and FRU
Ported from IBM Romulus layer.
Signed-off-by: Artem Senichev <a.senichev@yadro.com>
Change-Id: I0fd0375197a6ebcee31d9f8ed50b3304f6f589d3
diff --git a/meta-nicole/recipes-phosphor/occ/files/occ_sensor.yaml b/meta-nicole/recipes-phosphor/occ/files/occ_sensor.yaml
new file mode 100644
index 0000000..ebfaf76
--- /dev/null
+++ b/meta-nicole/recipes-phosphor/occ/files/occ_sensor.yaml
@@ -0,0 +1,6 @@
+- Instance: 0
+ SensorID: 0x03
+ SensorName: occ0
+- Instance: 1
+ SensorID: 0x04
+ SensorName: occ1
diff --git a/meta-nicole/recipes-phosphor/occ/nicole-occ-control-config-native.bb b/meta-nicole/recipes-phosphor/occ/nicole-occ-control-config-native.bb
new file mode 100644
index 0000000..8d959e7
--- /dev/null
+++ b/meta-nicole/recipes-phosphor/occ/nicole-occ-control-config-native.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Nicole OCC Control sensor IDs"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${YADROBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
+
+inherit native
+inherit openpower-occ-control
+
+PROVIDES += "virtual/openpower-occ-control-config-native"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+SRC_URI += "file://occ_sensor.yaml"
+
+S = "${WORKDIR}"
+do_install() {
+ install -d ${YAML_DEST}/
+ install ${S}/occ_sensor.yaml ${YAML_DEST}/
+}