blob: f33fe0dc28aec82e132792d4c77696fec6293bf9 [file] [log] [blame]
Xo Wangadce8b92016-12-15 15:24:22 -08001SUMMARY = "Zaius VCS rail control"
2DESCRIPTION = "VCS voltage rail control implementation for Zaius"
3PR = "r0"
Brad Bishop71d01e22018-11-07 12:44:15 -08004LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://${INGRASYSBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Xo Wangadce8b92016-12-15 15:24:22 -08006
7inherit obmc-phosphor-systemd
Xo Wangadce8b92016-12-15 15:24:22 -08008
9PROVIDES += 'virtual/p9-vcs-workaround'
10RPROVIDES_${PN} += 'virtual-p9-vcs-workaround'
11
12TMPL_OFF = "vcs-off@.service"
13TMPL_ON = "vcs-on@.service"
14INSTFMT_OFF = "vcs-off@{0}.service"
15INSTFMT_ON = "vcs-on@{0}.service"
Josh D. Kingefb04a12017-04-06 15:56:37 -050016TGTFMT_OFF = "obmc-host-stop@{0}.target"
Josh D. Kingb9ee5362017-04-06 14:43:46 -050017TGTFMT_ON = "obmc-chassis-poweron@{0}.target"
Xo Wangadce8b92016-12-15 15:24:22 -080018FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}"
Matt Spinler3dfd7e82017-03-30 08:38:28 -050019FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}"
Xo Wangadce8b92016-12-15 15:24:22 -080020
21SYSTEMD_SERVICE_${PN} += "${TMPL_OFF}"
22SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}"
23SYSTEMD_SERVICE_${PN} += "${TMPL_ON}"
24SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}"
25
26SRC_URI += "file://zaius_vcs.sh"
27RDEPENDS_${PN} += "i2c-tools"
28
29do_install() {
30 install -d ${D}${bindir}
31 install -m 0755 ${WORKDIR}/zaius_vcs.sh ${D}${bindir}/zaius_vcs.sh
32}