diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-05-01 21:13:29 +0300 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2017-05-11 23:16:46 +0300 |
commit | 8dff73f48842bc6005f03b84e585ae93cb849f08 (patch) | |
tree | 2efe8c84e61a620880b3b19d5daa3c5282a13da2 | |
parent | 56e3527d15a8a52becba600926d3aebe838d1550 (diff) | |
download | openbmc-8dff73f48842bc6005f03b84e585ae93cb849f08.tar.xz |
Install fan monitor yaml
The phosphor-fan-monitor-config-native recipe will
install the fan monitor configuration yaml so other
recipes can use it.
To install a system specific version of the yaml,
a .bbappend in that system's layer should be used,
otherwise an empty yaml file will be installed.
Change-Id: I310704846915320b5644eda1d5b933471436b2f9
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
4 files changed, 19 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend new file mode 100644 index 0000000000..05dc72510c --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bbappend @@ -0,0 +1 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/phosphor-fan-monitor-config:" diff --git a/meta-phosphor/classes/phosphor-fan.bbclass b/meta-phosphor/classes/phosphor-fan.bbclass index 198b292809..d0ffd99a0c 100644 --- a/meta-phosphor/classes/phosphor-fan.bbclass +++ b/meta-phosphor/classes/phosphor-fan.bbclass @@ -1,2 +1,3 @@ presence_datadir="${datadir}/phosphor-fan-presence" control_datadir="${datadir}/phosphor-fan-control" +monitor_datadir="${datadir}/phosphor-fan-monitor" diff --git a/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bb b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bb new file mode 100644 index 0000000000..02420e43e6 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-monitor-config-native.bb @@ -0,0 +1,15 @@ +SUMMARY = "Phosphor fan monitor definition default data" +PR = "r1" + +inherit native +inherit obmc-phosphor-license +inherit phosphor-fan + +SRC_URI += "file://monitor.yaml" + +S = "${WORKDIR}" + +do_install() { + DEST=${D}${monitor_datadir} + install -D monitor.yaml ${DEST}/monitor.yaml +} diff --git a/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-monitor-config/monitor.yaml b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-monitor-config/monitor.yaml new file mode 100644 index 0000000000..ce60a22022 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan-monitor-config/monitor.yaml @@ -0,0 +1,2 @@ +#Default fan monitor definition YAML - empty. +#For format, see documentation in fan monitor code repository example yaml. |