blob: 3c7b92eaa12ff40ef9a6173e8b69cab4eac4b2e8 [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"
Brad Bishopa242d472019-09-13 14:08:31 -04005LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Xo Wangadce8b92016-12-15 15:24:22 -08006
7inherit obmc-phosphor-systemd
Xo Wangadce8b92016-12-15 15:24:22 -08008
Xo Wangadce8b92016-12-15 15:24:22 -08009TMPL_OFF = "vcs-off@.service"
10TMPL_ON = "vcs-on@.service"
11INSTFMT_OFF = "vcs-off@{0}.service"
12INSTFMT_ON = "vcs-on@{0}.service"
Josh D. Kingefb04a12017-04-06 15:56:37 -050013TGTFMT_OFF = "obmc-host-stop@{0}.target"
Josh D. Kingb9ee5362017-04-06 14:43:46 -050014TGTFMT_ON = "obmc-chassis-poweron@{0}.target"
Xo Wangadce8b92016-12-15 15:24:22 -080015FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}"
Matt Spinler3dfd7e82017-03-30 08:38:28 -050016FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}"
Xo Wangadce8b92016-12-15 15:24:22 -080017
Brandon Kim40d8f442021-08-11 13:22:32 -070018SYSTEMD_SERVICE:${PN} += "${TMPL_OFF}"
Xo Wangadce8b92016-12-15 15:24:22 -080019SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}"
Brandon Kim40d8f442021-08-11 13:22:32 -070020SYSTEMD_SERVICE:${PN} += "${TMPL_ON}"
Xo Wangadce8b92016-12-15 15:24:22 -080021SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}"
22
23SRC_URI += "file://zaius_vcs.sh"
Brandon Kim40d8f442021-08-11 13:22:32 -070024RDEPENDS:${PN} += "i2c-tools"
Xo Wangadce8b92016-12-15 15:24:22 -080025
26do_install() {
27 install -d ${D}${bindir}
28 install -m 0755 ${WORKDIR}/zaius_vcs.sh ${D}${bindir}/zaius_vcs.sh
29}