Xo Wang | 9baac6f | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 1 | SUMMARY = "Zaius VCS rail control" |
| 2 | DESCRIPTION = "VCS voltage rail control implementation for Zaius" |
| 3 | PR = "r0" |
Patrick Venture | c5f9312 | 2018-11-05 19:52:11 -0800 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${INGRASYSBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Xo Wang | 9baac6f | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 6 | |
| 7 | inherit obmc-phosphor-systemd |
Xo Wang | 9baac6f | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 8 | |
| 9 | PROVIDES += 'virtual/p9-vcs-workaround' |
| 10 | RPROVIDES_${PN} += 'virtual-p9-vcs-workaround' |
| 11 | |
| 12 | TMPL_OFF = "vcs-off@.service" |
| 13 | TMPL_ON = "vcs-on@.service" |
| 14 | INSTFMT_OFF = "vcs-off@{0}.service" |
| 15 | INSTFMT_ON = "vcs-on@{0}.service" |
Josh D. King | 6cf56c0 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 16 | TGTFMT_OFF = "obmc-host-stop@{0}.target" |
Josh D. King | f5ba927 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 17 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
Xo Wang | 9baac6f | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 18 | FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}" |
Matt Spinler | 12a619a | 2017-03-30 08:38:28 -0500 | [diff] [blame] | 19 | FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}" |
Xo Wang | 9baac6f | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 20 | |
| 21 | SYSTEMD_SERVICE_${PN} += "${TMPL_OFF}" |
| 22 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}" |
| 23 | SYSTEMD_SERVICE_${PN} += "${TMPL_ON}" |
| 24 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" |
| 25 | |
| 26 | SRC_URI += "file://zaius_vcs.sh" |
| 27 | RDEPENDS_${PN} += "i2c-tools" |
| 28 | |
| 29 | do_install() { |
| 30 | install -d ${D}${bindir} |
| 31 | install -m 0755 ${WORKDIR}/zaius_vcs.sh ${D}${bindir}/zaius_vcs.sh |
| 32 | } |