diff options
4 files changed, 20 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native.bbappend new file mode 100644 index 000000000..96a8a11b1 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-zone-config-native.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/phosphor-fan-control-zone-config:" + diff --git a/meta-phosphor/classes/phosphor-fan.bbclass b/meta-phosphor/classes/phosphor-fan.bbclass index b59f1f567..198b29280 100644 --- a/meta-phosphor/classes/phosphor-fan.bbclass +++ b/meta-phosphor/classes/phosphor-fan.bbclass @@ -1 +1,2 @@ presence_datadir="${datadir}/phosphor-fan-presence" +control_datadir="${datadir}/phosphor-fan-control" diff --git a/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-control-zone-config-native.bb b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-control-zone-config-native.bb new file mode 100644 index 000000000..4d8759e47 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-control-zone-config-native.bb @@ -0,0 +1,15 @@ +SUMMARY = "Phosphor fan zone definition default data" +PR = "r1" + +inherit native +inherit obmc-phosphor-license +inherit phosphor-fan + +SRC_URI += "file://zones.yaml" + +S = "${WORKDIR}" + +do_install() { + DEST=${D}${control_datadir} + install -D zones.yaml ${DEST}/zones.yaml +} diff --git a/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-control-zone-config/zones.yaml b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-control-zone-config/zones.yaml new file mode 100644 index 000000000..d25803ce6 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-control-zone-config/zones.yaml @@ -0,0 +1,2 @@ +#Default fan zone definition YAML - empty. +#For format, see documentation in fan control code repository example yaml. |