1SUMMARY = "Fan policy configurations for meta-witherspoon machines"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6inherit allarch
7inherit phosphor-dbus-monitor
8
9FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
10
11SRC_URI += "file://air-cooled.yaml"
12SRC_URI_append_ibm-ac-server = " file://water-cooled.yaml"
13SRC_URI += "file://fan-errors.yaml"
14
15SRC_URI_remove_p10bmc = "file://air-cooled.yaml"
16SRC_URI_remove_p10bmc = "file://fan-errors.yaml"
17
18do_install_append_ibm-ac-server() {
19        install -D ${WORKDIR}/air-cooled.yaml ${D}${config_dir}/air-cooled.yaml
20        install -D ${WORKDIR}/water-cooled.yaml ${D}${config_dir}/water-cooled.yaml
21        install -D ${WORKDIR}/fan-errors.yaml ${D}${config_dir}/fan-errors.yaml
22}
23
24do_install_append_mihawk() {
25        install -D ${WORKDIR}/air-cooled.yaml ${D}${config_dir}/air-cooled.yaml
26        install -D ${WORKDIR}/fan-errors.yaml ${D}${config_dir}/fan-errors.yaml
27}
28
29FILES_${PN} += "${config_dir}/air-cooled.yaml"
30FILES_${PN}_append_ibm-ac-server = " ${config_dir}/water-cooled.yaml"
31FILES_${PN} += "${config_dir}/fan-errors.yaml"
32
33FILES_${PN}_remove_p10bmc = "${config_dir}/air-cooled.yaml"
34FILES_${PN}_remove_p10bmc = "${config_dir}/fan-errors.yaml"
35