George Hung | b67a01a | 2020-06-30 10:47:30 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:" |
| 2 | SRC_URI_append_gbs = " file://config.json" |
| 3 | SRC_URI_append_gbs = " file://fan-table-init.sh" |
| 4 | SRC_URI_append_gbs = " file://fan-default-speed.sh" |
| 5 | SRC_URI_append_gbs = " file://phosphor-pid-control.service" |
| 6 | SRC_URI_append_gbs = " file://fan-reboot-control.service" |
| 7 | |
| 8 | FILES_${PN}_append_gbs = " ${datadir}/swampd/config.json" |
| 9 | FILES_${PN}_append_gbs = " ${bindir}/fan-default-speed.sh" |
| 10 | FILES_${PN}_append_gbs = " ${bindir}/fan-table-init.sh" |
| 11 | |
| 12 | RDEPENDS_${PN} += "bash" |
| 13 | |
| 14 | SYSTEMD_SERVICE_${PN}_append_gbs = " phosphor-pid-control.service" |
| 15 | SYSTEMD_SERVICE_${PN}_append_gbs = " fan-reboot-control.service" |
| 16 | |
| 17 | do_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 | } |