Xo Wang | adce8b9 | 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" |
Brad Bishop | 71d01e2 | 2018-11-07 12:44:15 -0800 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
Brad Bishop | a242d47 | 2019-09-13 14:08:31 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 6 | |
| 7 | inherit obmc-phosphor-systemd |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 8 | |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 9 | TMPL_OFF = "vcs-off@.service" |
| 10 | TMPL_ON = "vcs-on@.service" |
| 11 | INSTFMT_OFF = "vcs-off@{0}.service" |
| 12 | INSTFMT_ON = "vcs-on@{0}.service" |
Josh D. King | efb04a1 | 2017-04-06 15:56:37 -0500 | [diff] [blame] | 13 | TGTFMT_OFF = "obmc-host-stop@{0}.target" |
Josh D. King | b9ee536 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 14 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 15 | FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}" |
Matt Spinler | 3dfd7e8 | 2017-03-30 08:38:28 -0500 | [diff] [blame] | 16 | FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}" |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 17 | |
Brandon Kim | 40d8f44 | 2021-08-11 13:22:32 -0700 | [diff] [blame] | 18 | SYSTEMD_SERVICE:${PN} += "${TMPL_OFF}" |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 19 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}" |
Brandon Kim | 40d8f44 | 2021-08-11 13:22:32 -0700 | [diff] [blame] | 20 | SYSTEMD_SERVICE:${PN} += "${TMPL_ON}" |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 21 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 22 | |
| 23 | SRC_URI += "file://zaius_vcs.sh" |
Brandon Kim | 40d8f44 | 2021-08-11 13:22:32 -0700 | [diff] [blame] | 24 | RDEPENDS:${PN} += "i2c-tools" |
Xo Wang | adce8b9 | 2016-12-15 15:24:22 -0800 | [diff] [blame] | 25 | |
| 26 | do_install() { |
| 27 | install -d ${D}${bindir} |
| 28 | install -m 0755 ${WORKDIR}/zaius_vcs.sh ${D}${bindir}/zaius_vcs.sh |
| 29 | } |