Samuel Jiang | f4a8e7a | 2019-10-18 08:56:58 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | SRC_URI_append_olympus-nuvoton = " file://config-olympus-nuvoton.json" |
| 4 | SRC_URI_append_olympus-nuvoton = " file://fan-full-speed.sh" |
| 5 | SRC_URI_append_olympus-nuvoton = " file://phosphor-pid-control.service" |
| 6 | SRC_URI_append_olympus-nuvoton = " file://fan-reboot-control.service" |
| 7 | |
| 8 | FILES_${PN}_append_olympus-nuvoton = " ${bindir}/fan-full-speed.sh" |
| 9 | FILES_${PN}_append_olympus-nuvoton = " ${datadir}/swampd/config.json" |
| 10 | |
| 11 | RDEPENDS_${PN} += "bash" |
| 12 | |
| 13 | SYSTEMD_SERVICE_${PN}_append_olympus-nuvoton = " phosphor-pid-control.service" |
| 14 | SYSTEMD_SERVICE_${PN}_append_olympus-nuvoton = " fan-reboot-control.service" |
| 15 | |
| 16 | do_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 | } |