blob: f5427259353c32bef315055a4eda46e556471026 [file] [log] [blame]
Matthew Barth9c525872019-06-12 10:18:39 -05001SUMMARY = "Fan policy configurations for meta-witherspoon machines"
Matthew Barthbc7b43f2019-06-13 12:06:11 -05002PR = "r1"
3LICENSE = "Apache-2.0"
Brad Bishopd77088a2019-09-13 13:06:15 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Matthew Barthbc7b43f2019-06-13 12:06:11 -05005
6inherit allarch
7inherit phosphor-dbus-monitor
8
Adriana Kobylakb96c7502021-08-06 16:25:30 +00009FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
Matthew Barthbc7b43f2019-06-13 12:06:11 -050010
11SRC_URI += "file://air-cooled.yaml"
Adriana Kobylakb96c7502021-08-06 16:25:30 +000012SRC_URI:append:ibm-ac-server = " file://water-cooled.yaml"
Matthew Barthbc7b43f2019-06-13 12:06:11 -050013SRC_URI += "file://fan-errors.yaml"
14
Adriana Kobylakb96c7502021-08-06 16:25:30 +000015SRC_URI:remove:p10bmc = "file://air-cooled.yaml"
16SRC_URI:remove:p10bmc = "file://fan-errors.yaml"
Matt Spinlerf3e7cee2021-01-19 14:09:34 -060017
Adriana Kobylakb96c7502021-08-06 16:25:30 +000018do_install:append:ibm-ac-server() {
Matthew Barthbc7b43f2019-06-13 12:06:11 -050019 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
Adriana Kobylakb96c7502021-08-06 16:25:30 +000024do_install:append:mihawk() {
Ben_Paifba51212019-08-05 18:34:34 +080025 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
Adriana Kobylakb96c7502021-08-06 16:25:30 +000029FILES:${PN} += "${config_dir}/air-cooled.yaml"
30FILES:${PN}:append:ibm-ac-server = " ${config_dir}/water-cooled.yaml"
31FILES:${PN} += "${config_dir}/fan-errors.yaml"
Matt Spinlerf3e7cee2021-01-19 14:09:34 -060032
Adriana Kobylakb96c7502021-08-06 16:25:30 +000033FILES:${PN}:remove:p10bmc = "${config_dir}/air-cooled.yaml"
34FILES:${PN}:remove:p10bmc = "${config_dir}/fan-errors.yaml"