Delphine CC Chiu | ad82d62 | 2023-07-26 13:30:52 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | EXTRA_OEMESON:append = " \ |
| 4 | -Dwarm-reboot=enabled \ |
| 5 | " |
| 6 | |
Delphine CC Chiu | 6372878 | 2023-11-01 10:26:57 +0800 | [diff] [blame^] | 7 | HOST_DEFAULT_TARGETS:remove:yosemite4 = " \ |
| 8 | obmc-host-reboot@{}.target.requires/obmc-host-shutdown@{}.target \ |
| 9 | obmc-host-reboot@{}.target.requires/phosphor-reboot-host@{}.service \ |
| 10 | " |
| 11 | |
Delphine CC Chiu | ad82d62 | 2023-07-26 13:30:52 +0800 | [diff] [blame] | 12 | CHASSIS_DEFAULT_TARGETS:remove:yosemite4 = " \ |
| 13 | obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-on@{}.service \ |
| 14 | obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-running@{}.service \ |
| 15 | obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \ |
| 16 | obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \ |
| 17 | " |
| 18 | |
| 19 | SRC_URI:append:yosemite4 = " \ |
| 20 | file://chassis-poweroff@.service \ |
| 21 | file://chassis-poweron@.service \ |
| 22 | file://chassis-powercycle@.service \ |
| 23 | file://host-poweroff@.service \ |
| 24 | file://host-poweron@.service \ |
| 25 | file://host-powercycle@.service \ |
| 26 | file://host-powerreset@.service \ |
| 27 | file://chassis-poweroff \ |
| 28 | file://chassis-poweron \ |
| 29 | file://chassis-powercycle \ |
| 30 | file://host-poweroff \ |
| 31 | file://host-poweron \ |
| 32 | file://host-powercycle \ |
| 33 | file://host-powerreset \ |
| 34 | file://power-cmd \ |
| 35 | " |
| 36 | |
| 37 | RDEPENDS:${PN}:append:yosemite4 = " bash" |
| 38 | |
| 39 | do_install:append:yosemite4() { |
| 40 | install -d ${D}${systemd_system_unitdir} |
| 41 | install -m 0644 ${WORKDIR}/*.service ${D}${systemd_system_unitdir}/ |
| 42 | |
| 43 | install -d ${D}${libexecdir}/${PN} |
| 44 | install -m 0777 ${WORKDIR}/chassis-poweroff ${D}${libexecdir}/${PN}/ |
| 45 | install -m 0777 ${WORKDIR}/chassis-poweron ${D}${libexecdir}/${PN}/ |
| 46 | install -m 0777 ${WORKDIR}/chassis-powercycle ${D}${libexecdir}/${PN}/ |
| 47 | install -m 0777 ${WORKDIR}/host-poweroff ${D}${libexecdir}/${PN}/ |
| 48 | install -m 0777 ${WORKDIR}/host-poweron ${D}${libexecdir}/${PN}/ |
| 49 | install -m 0777 ${WORKDIR}/host-powercycle ${D}${libexecdir}/${PN}/ |
| 50 | install -m 0777 ${WORKDIR}/host-powerreset ${D}${libexecdir}/${PN}/ |
| 51 | install -m 0777 ${WORKDIR}/power-cmd ${D}${libexecdir}/${PN}/ |
| 52 | } |
| 53 | |
| 54 | FILES:${PN} += " ${systemd_system_unitdir}/*.service" |