blob: dfe2209353906d150f997e32d4e149acbaeb0cae [file] [log] [blame]
Brad Bishop6587e6c2019-05-13 14:46:48 -04001FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
Matthew Barth36206802020-06-19 13:48:27 -05002
Matthew Barth27be42e2020-06-22 11:14:20 -05003SRC_URI_witherspoon = "file://config.json"
Matthew Barthdd3117e2020-11-23 19:40:56 -06004SRC_URI_rainier = "file://rainier-2u/config.json \
5 file://rainier-4u/config.json \
6 file://everest/config.json \
7 "
Matthew Barth36206802020-06-19 13:48:27 -05008
Matthew Barth27be42e2020-06-22 11:14:20 -05009do_install_witherspoon() {
Matthew Barth36206802020-06-19 13:48:27 -050010 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/
11 install -m 0644 ${WORKDIR}/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/
12}
13
Matthew Barthdd3117e2020-11-23 19:40:56 -060014do_install_rainier() {
15 # Install Rainier-2U/4U fan monitor config files
16 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-2u/
17 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-4u/
18 install -m 0644 ${WORKDIR}/rainier-2u/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-2u/
19 install -m 0644 ${WORKDIR}/rainier-4u/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,rainier-4u/
20
21 # Install Everest fan monitor config file
22 install -d ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,everest/
23 install -m 0644 ${WORKDIR}/everest/config.json ${D}/${datadir}/phosphor-fan-presence/monitor/ibm,everest/
24}
25
Matthew Barth27be42e2020-06-22 11:14:20 -050026FILES_${PN}_append_witherspoon = " ${datadir}/phosphor-fan-presence/monitor/config.json"
27FILES_${PN}_remove_witherspoon = "${monitor_datadir}/monitor.yaml"
Matthew Barthdd3117e2020-11-23 19:40:56 -060028
29FILES_${PN}_remove_rainier = "${monitor_datadir}/monitor.yaml"
30FILES_${PN}_append_rainier = " ${datadir}/phosphor-fan-presence/monitor/ibm,rainier-2u/config.json"
31FILES_${PN}_append_rainier = " ${datadir}/phosphor-fan-presence/monitor/ibm,rainier-4u/config.json"
32FILES_${PN}_append_rainier = " ${datadir}/phosphor-fan-presence/monitor/ibm,everest/config.json"