blob: a61181dcb3574cc71c7a958328b94dcd0edbfccd [file] [log] [blame]
Samuel Jiangf4a8e7a2019-10-18 08:56:58 +08001FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:"
2
3SRC_URI_append_olympus-nuvoton = " file://config-olympus-nuvoton.json"
4SRC_URI_append_olympus-nuvoton = " file://fan-full-speed.sh"
5SRC_URI_append_olympus-nuvoton = " file://phosphor-pid-control.service"
6SRC_URI_append_olympus-nuvoton = " file://fan-reboot-control.service"
7
8FILES_${PN}_append_olympus-nuvoton = " ${bindir}/fan-full-speed.sh"
9FILES_${PN}_append_olympus-nuvoton = " ${datadir}/swampd/config.json"
10
11RDEPENDS_${PN} += "bash"
12
13SYSTEMD_SERVICE_${PN}_append_olympus-nuvoton = " phosphor-pid-control.service"
14SYSTEMD_SERVICE_${PN}_append_olympus-nuvoton = " fan-reboot-control.service"
15
16do_install_append_olympus-nuvoton() {
17 install -d ${D}/${bindir}
18 install -m 0755 ${WORKDIR}/fan-full-speed.sh ${D}/${bindir}
19
20 install -d ${D}${datadir}/swampd
21 install -m 0644 -D ${WORKDIR}/config-olympus-nuvoton.json \
22 ${D}${datadir}/swampd/config.json
23
24 install -d ${D}${systemd_unitdir}/system/
25 install -m 0644 ${WORKDIR}/phosphor-pid-control.service \
26 ${D}${systemd_unitdir}/system
27 install -m 0644 ${WORKDIR}/fan-reboot-control.service \
28 ${D}${systemd_unitdir}/system
29}