blob: 29f36a4f265b6c54ebb4d3586257e63c1c9c59dc [file] [log] [blame]
Xo Wangb13aa512016-12-15 18:29:58 -08001SUMMARY = "Zaius AVSBus control"
2DESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Zaius"
3PR = "r0"
4
5inherit obmc-phosphor-systemd
6inherit obmc-phosphor-license
7
8TMPL_OFF = "avsbus-disable@.service"
9TMPL_ON = "avsbus-enable@.service"
10INSTFMT_OFF = "avsbus-disable@{0}.service"
11INSTFMT_ON = "avsbus-enable@{0}.service"
Josh D. Kingefb04a12017-04-06 15:56:37 -050012TGTFMT_OFF = "obmc-host-stop@{0}.target"
Josh D. Kingb9ee5362017-04-06 14:43:46 -050013TGTFMT_ON = "obmc-chassis-poweron@{0}.target"
Xo Wangb13aa512016-12-15 18:29:58 -080014FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}"
Matt Spinler3dfd7e82017-03-30 08:38:28 -050015FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}"
Xo Wangb13aa512016-12-15 18:29:58 -080016
17SYSTEMD_SERVICE_${PN} += "${TMPL_OFF}"
18SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}"
19SYSTEMD_SERVICE_${PN} += "${TMPL_ON}"
20SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}"
21
22SRC_URI += "file://zaius_avsbus.sh"
23RDEPENDS_${PN} += "i2c-tools"
24
25do_install() {
26 install -d ${D}${bindir}
27 install -m 0755 ${WORKDIR}/zaius_avsbus.sh ${D}${bindir}/zaius_avsbus.sh
28}