Xo Wang | 61a1001 | 2016-12-15 18:29:58 -0800 | [diff] [blame] | 1 | SUMMARY = "Zaius AVSBus control" |
| 2 | DESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Zaius" |
| 3 | PR = "r0" |
| 4 | |
| 5 | inherit obmc-phosphor-systemd |
| 6 | inherit obmc-phosphor-license |
| 7 | |
| 8 | TMPL_OFF = "avsbus-disable@.service" |
| 9 | TMPL_ON = "avsbus-enable@.service" |
| 10 | INSTFMT_OFF = "avsbus-disable@{0}.service" |
| 11 | INSTFMT_ON = "avsbus-enable@{0}.service" |
| 12 | TGTFMT_OFF = "obmc-chassis-stop@{0}.target" |
Josh D. King | f5ba927 | 2017-04-06 14:43:46 -0500 | [diff] [blame^] | 13 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
Xo Wang | 61a1001 | 2016-12-15 18:29:58 -0800 | [diff] [blame] | 14 | FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}" |
Matt Spinler | 12a619a | 2017-03-30 08:38:28 -0500 | [diff] [blame] | 15 | FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}" |
Xo Wang | 61a1001 | 2016-12-15 18:29:58 -0800 | [diff] [blame] | 16 | |
| 17 | SYSTEMD_SERVICE_${PN} += "${TMPL_OFF}" |
| 18 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}" |
| 19 | SYSTEMD_SERVICE_${PN} += "${TMPL_ON}" |
| 20 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" |
| 21 | |
| 22 | SRC_URI += "file://zaius_avsbus.sh" |
| 23 | RDEPENDS_${PN} += "i2c-tools" |
| 24 | |
| 25 | do_install() { |
| 26 | install -d ${D}${bindir} |
| 27 | install -m 0755 ${WORKDIR}/zaius_avsbus.sh ${D}${bindir}/zaius_avsbus.sh |
| 28 | } |