Peter Yin | 42e7aff | 2023-12-06 18:17:31 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | |
Peter Yin | ee5d7dd | 2024-01-09 13:54:11 +0800 | [diff] [blame] | 3 | PACKAGECONFIG:remove = "no-warm-reboot only-run-apr-on-power-loss" |
| 4 | |
Peter Yin | 42e7aff | 2023-12-06 18:17:31 +0800 | [diff] [blame] | 5 | |
| 6 | CHASSIS_DEFAULT_TARGETS:remove:harma = " \ |
| 7 | obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-on@{}.service \ |
| 8 | obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-running@{}.service \ |
| 9 | obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \ |
| 10 | obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \ |
| 11 | " |
| 12 | |
| 13 | CHASSIS_DEFAULT_TARGETS:append:harma = " \ |
| 14 | obmc-chassis-hard-poweroff@{}.target.wants/host-poweroff@0.service \ |
| 15 | " |
| 16 | |
| 17 | HOST_DEFAULT_TARGETS:remove:harma = " \ |
| 18 | obmc-host-start@{}.target.wants/host-poweron@{}.service \ |
Peter Yin | ee5d7dd | 2024-01-09 13:54:11 +0800 | [diff] [blame] | 19 | obmc-host-force-warm-reboot@{}.target.requires/obmc-host-stop@{}.target \ |
| 20 | obmc-host-force-warm-reboot@{}.target.requires/phosphor-reboot-host@{}.service \ |
Peter Yin | 42e7aff | 2023-12-06 18:17:31 +0800 | [diff] [blame] | 21 | " |
| 22 | |
| 23 | HOST_DEFAULT_TARGETS:append:harma = " \ |
| 24 | obmc-host-startmin@{}.target.requires/host-poweron@{}.service \ |
| 25 | " |
| 26 | |
| 27 | SRC_URI:append:harma = " \ |
| 28 | file://chassis-powercycle@.service \ |
| 29 | file://host-poweroff@.service \ |
| 30 | file://host-poweron@.service \ |
| 31 | file://host-powercycle@.service \ |
| 32 | file://host-powerreset@.service \ |
| 33 | file://chassis-powercycle \ |
| 34 | file://host-poweroff \ |
| 35 | file://host-poweron \ |
| 36 | file://host-powercycle \ |
| 37 | file://host-powerreset \ |
| 38 | file://power-cmd \ |
| 39 | file://discover-sys-init.conf \ |
| 40 | file://phosphor-state-manager-init \ |
| 41 | file://phosphor-state-manager-init.conf \ |
| 42 | " |
| 43 | |
| 44 | RDEPENDS:${PN}:append:harma = " bash" |
| 45 | |
| 46 | do_install:append:harma() { |
| 47 | install -d ${D}${systemd_system_unitdir} |
| 48 | install -m 0644 ${WORKDIR}/*.service ${D}${systemd_system_unitdir}/ |
| 49 | |
| 50 | install -d ${D}${libexecdir}/${PN} |
Patrick Williams | d313524 | 2024-01-19 16:45:58 -0600 | [diff] [blame^] | 51 | install -m 0755 ${WORKDIR}/chassis-powercycle ${D}${libexecdir}/${PN}/ |
| 52 | install -m 0755 ${WORKDIR}/host-poweroff ${D}${libexecdir}/${PN}/ |
| 53 | install -m 0755 ${WORKDIR}/host-poweron ${D}${libexecdir}/${PN}/ |
| 54 | install -m 0755 ${WORKDIR}/host-powercycle ${D}${libexecdir}/${PN}/ |
| 55 | install -m 0755 ${WORKDIR}/host-powerreset ${D}${libexecdir}/${PN}/ |
| 56 | install -m 0755 ${WORKDIR}/power-cmd ${D}${libexecdir}/${PN}/ |
| 57 | install -m 0755 ${WORKDIR}/phosphor-state-manager-init ${D}${libexecdir}/${PN}/ |
Peter Yin | 42e7aff | 2023-12-06 18:17:31 +0800 | [diff] [blame] | 58 | } |
| 59 | SYSTEMD_OVERRIDE:${PN}-discover:harma += "discover-sys-init.conf:phosphor-discover-system-state@0.service.d/discover-sys-init.conf" |
| 60 | SYSTEMD_OVERRIDE:${PN}-systemd-target-monitor:harma += "phosphor-state-manager-init.conf:phosphor-systemd-target-monitor.service.d/phosphor-state-manager-init.conf" |