blob: 164a9e75b498ac587a7dded0662e8921f0c85e9a [file] [log] [blame]
Xo Wang61a10012016-12-15 18:29:58 -08001SUMMARY = "Zaius AVSBus control"
2DESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Zaius"
3PR = "r0"
Patrick Venture5de0cb92018-11-05 19:51:08 -08004LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://${INGRASYSBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Xo Wang61a10012016-12-15 18:29:58 -08006
7inherit obmc-phosphor-systemd
Xo Wang61a10012016-12-15 18:29:58 -08008
9TMPL_OFF = "avsbus-disable@.service"
10TMPL_ON = "avsbus-enable@.service"
11INSTFMT_OFF = "avsbus-disable@{0}.service"
12INSTFMT_ON = "avsbus-enable@{0}.service"
Josh D. King6cf56c02017-04-06 15:56:37 -050013TGTFMT_OFF = "obmc-host-stop@{0}.target"
Josh D. Kingf5ba9272017-04-06 14:43:46 -050014TGTFMT_ON = "obmc-chassis-poweron@{0}.target"
Xo Wang61a10012016-12-15 18:29:58 -080015FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}"
Matt Spinler12a619a2017-03-30 08:38:28 -050016FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}"
Xo Wang61a10012016-12-15 18:29:58 -080017
18SYSTEMD_SERVICE_${PN} += "${TMPL_OFF}"
19SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}"
20SYSTEMD_SERVICE_${PN} += "${TMPL_ON}"
21SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}"
22
23SRC_URI += "file://zaius_avsbus.sh"
24RDEPENDS_${PN} += "i2c-tools"
25
26do_install() {
27 install -d ${D}${bindir}
28 install -m 0755 ${WORKDIR}/zaius_avsbus.sh ${D}${bindir}/zaius_avsbus.sh
29}