George Hung | b5eef51 | 2021-03-10 16:04:46 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | SRC_URI_append_gbs = " \ |
| 4 | file://gbs-host-s0-set-failsafe.service \ |
| 5 | file://gbs-host-s5-set-failsafe.service \ |
| 6 | file://gbs-host-set-boot-failsafe@.service \ |
| 7 | file://gbs-check-host-state.service \ |
| 8 | file://gbs-set-boot-failsafe.sh \ |
| 9 | file://gbs-set-failsafe.sh \ |
| 10 | file://gbs-check-host-state.sh \ |
| 11 | file://gbs-host-ready.target \ |
| 12 | " |
| 13 | |
| 14 | RDEPENDS_${PN}_append_gbs = "bash" |
| 15 | |
| 16 | CHASSIS_INSTANCE="0" |
| 17 | |
| 18 | SYSTEMD_SERVICE_${PN}_append_gbs = " \ |
| 19 | gbs-host-s0-set-failsafe.service \ |
| 20 | gbs-host-s5-set-failsafe.service \ |
| 21 | gbs-host-set-boot-failsafe@${CHASSIS_INSTANCE}.service \ |
| 22 | gbs-check-host-state.service \ |
| 23 | gbs-host-ready.target \ |
| 24 | " |
| 25 | |
| 26 | FILES_${PN}_append_gbs = " \ |
| 27 | ${systemd_system_unitdir}/gbs-host-set-boot-failsafe@.service \ |
| 28 | " |
| 29 | |
| 30 | do_install_append_gbs() { |
| 31 | install -d ${D}${bindir} |
| 32 | |
| 33 | install -m 0755 ${WORKDIR}/gbs-set-failsafe.sh ${D}${bindir}/. |
| 34 | install -m 0755 ${WORKDIR}/gbs-set-boot-failsafe.sh ${D}${bindir}/. |
| 35 | install -m 0755 ${WORKDIR}/gbs-check-host-state.sh ${D}${bindir}/. |
| 36 | |
| 37 | install -d ${D}${systemd_system_unitdir} |
| 38 | install -m 0644 ${WORKDIR}/gbs-host-s0-set-failsafe.service ${D}${systemd_system_unitdir} |
| 39 | install -m 0644 ${WORKDIR}/gbs-host-s5-set-failsafe.service ${D}${systemd_system_unitdir} |
| 40 | install -m 0644 ${WORKDIR}/gbs-host-set-boot-failsafe@.service ${D}${systemd_system_unitdir} |
| 41 | install -m 0644 ${WORKDIR}/gbs-check-host-state.service ${D}${systemd_system_unitdir} |
| 42 | install -m 0644 ${WORKDIR}/gbs-host-ready.target ${D}${systemd_system_unitdir} |
| 43 | } |