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:append:df-openpower = " file://air-cooled.yaml"
12SRC_URI:append:ibm-ac-server = " file://water-cooled.yaml"
13SRC_URI:append:df-openpower = " 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
24
25FILES:${PN} += "${config_dir}/air-cooled.yaml"
26FILES:${PN}:append:ibm-ac-server = " ${config_dir}/water-cooled.yaml"
27FILES:${PN} += "${config_dir}/fan-errors.yaml"
28
29FILES:${PN}:remove:p10bmc = "${config_dir}/air-cooled.yaml"
30FILES:${PN}:remove:p10bmc = "${config_dir}/fan-errors.yaml"
31