1FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" 2PACKAGECONFIG:append = " host-gpio" 3 4CHASSIS_DEFAULT_TARGETS:remove = " \ 5 obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-on@{}.service \ 6 obmc-chassis-powerreset@{}.target.requires/phosphor-reset-chassis-running@{}.service \ 7 obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \ 8 obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \ 9" 10 11RDEPENDS:${PN}:append = " bash" 12 13SRC_URI:append:minerva = " \ 14 file://chassis-powercycle \ 15 file://chassis-powercycle@.service \ 16 " 17 18do_install:append:minerva() { 19 install -d ${D}${systemd_system_unitdir} 20 install -m 0644 ${WORKDIR}/*.service ${D}${systemd_system_unitdir}/ 21 22 install -d ${D}${libexecdir}/${PN} 23 install -m 0755 ${WORKDIR}/chassis-powercycle ${D}${libexecdir}/${PN}/ 24} 25