blob: f87a49394daace46d5b27824ca8d726e6b1979f0 [file] [log] [blame]
George Hungb67a01a2020-06-30 10:47:30 +08001FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:"
2SRC_URI_append_gbs = " file://config.json"
3SRC_URI_append_gbs = " file://fan-table-init.sh"
4SRC_URI_append_gbs = " file://fan-default-speed.sh"
5SRC_URI_append_gbs = " file://phosphor-pid-control.service"
6SRC_URI_append_gbs = " file://fan-reboot-control.service"
7
8FILES_${PN}_append_gbs = " ${datadir}/swampd/config.json"
9FILES_${PN}_append_gbs = " ${bindir}/fan-default-speed.sh"
10FILES_${PN}_append_gbs = " ${bindir}/fan-table-init.sh"
11
12RDEPENDS_${PN} += "bash"
13
14SYSTEMD_SERVICE_${PN}_append_gbs = " phosphor-pid-control.service"
15SYSTEMD_SERVICE_${PN}_append_gbs = " fan-reboot-control.service"
16
17do_install_append_gbs() {
18 install -d ${D}/${bindir}
19 install -m 0755 ${WORKDIR}/fan-default-speed.sh ${D}/${bindir}
20 install -m 0755 ${WORKDIR}/fan-table-init.sh ${D}/${bindir}
21
22 install -d ${D}${datadir}/swampd
23 install -m 0644 -D ${WORKDIR}/config.json \
24 ${D}${datadir}/swampd/config.json
25
26 install -d ${D}${systemd_system_unitdir}
27 install -m 0644 ${WORKDIR}/phosphor-pid-control.service \
28 ${D}${systemd_system_unitdir}
29 install -m 0644 ${WORKDIR}/fan-reboot-control.service \
30 ${D}${systemd_system_unitdir}
31}