blob: 85cc4d82e98dd580f4ab230db6c89169c285ead1 [file] [log] [blame]
Adriana Kobylakb96c7502021-08-06 16:25:30 +00001FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:"
Matthew Barth8daae522020-06-19 13:48:27 -05002
Adriana Kobylakb96c7502021-08-06 16:25:30 +00003SRC_URI:witherspoon = "file://config.json"
4SRC_URI:p10bmc = "file://rainier-2u/config.json \
Matthew Barth530e1d82020-11-23 19:40:56 -06005 file://rainier-4u/config.json \
Andrew Geissler1053e1e2021-03-23 15:49:28 -05006 file://rainier-1s4u/config.json \
Matthew Barth530e1d82020-11-23 19:40:56 -06007 file://everest/config.json \
8 "
Matthew Barth8daae522020-06-19 13:48:27 -05009
Adriana Kobylakb96c7502021-08-06 16:25:30 +000010do_install:witherspoon() {
Matthew Barth8daae522020-06-19 13:48:27 -050011 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/
12 install -m 0644 ${WORKDIR}/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/
13}
14
Adriana Kobylakb96c7502021-08-06 16:25:30 +000015do_install:p10bmc() {
Matthew Barth530e1d82020-11-23 19:40:56 -060016 # Install Rainier-2U/4U fan monitor config files
17 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-2u/
18 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-4u/
Andrew Geissler1053e1e2021-03-23 15:49:28 -050019 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-1s4u/
Matthew Barth530e1d82020-11-23 19:40:56 -060020 install -m 0644 ${WORKDIR}/rainier-2u/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-2u/
21 install -m 0644 ${WORKDIR}/rainier-4u/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-4u/
Andrew Geissler1053e1e2021-03-23 15:49:28 -050022 install -m 0644 ${WORKDIR}/rainier-1s4u/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-1s4u/
Matthew Barth530e1d82020-11-23 19:40:56 -060023
24 # Install Everest fan monitor config file
25 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,everest/
26 install -m 0644 ${WORKDIR}/everest/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,everest/
27}
28
Adriana Kobylakb96c7502021-08-06 16:25:30 +000029FILES:${PN}:append:witherspoon = " ${datadir}/phosphor-fan-presence/monitor/config.json"
30FILES:${PN}:remove:witherspoon = "${monitor_datadir}/monitor.yaml"
Matthew Barth530e1d82020-11-23 19:40:56 -060031
Adriana Kobylakb96c7502021-08-06 16:25:30 +000032FILES:${PN}:remove:p10bmc = "${monitor_datadir}/monitor.yaml"
33FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-fan-presence/monitor/ibm,rainier-2u/config.json"
34FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-fan-presence/monitor/ibm,rainier-4u/config.json"
35FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-fan-presence/monitor/ibm,rainier-1s4u/config.json"
36FILES:${PN}:append:p10bmc = " ${datadir}/phosphor-fan-presence/monitor/ibm,everest/config.json"