1194ff4f1SDave CobbleySUMMARY = "Zaius AVSBus control"
2194ff4f1SDave CobbleyDESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Zaius"
3194ff4f1SDave CobbleyPR = "r0"
471d01e28SBrad BishopLICENSE = "Apache-2.0"
5a242d47bSBrad BishopLIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
6194ff4f1SDave Cobbley
7194ff4f1SDave Cobbleyinherit obmc-phosphor-systemd
8194ff4f1SDave Cobbley
9194ff4f1SDave CobbleyTMPL_OFF = "avsbus-disable@.service"
10194ff4f1SDave CobbleyTMPL_ON = "avsbus-enable@.service"
11194ff4f1SDave CobbleyINSTFMT_OFF = "avsbus-disable@{0}.service"
12194ff4f1SDave CobbleyINSTFMT_ON = "avsbus-enable@{0}.service"
13194ff4f1SDave CobbleyTGTFMT_OFF = "obmc-host-stop@{0}.target"
14194ff4f1SDave CobbleyTGTFMT_ON = "obmc-chassis-poweron@{0}.target"
15194ff4f1SDave CobbleyFMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}"
16194ff4f1SDave CobbleyFMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}"
17194ff4f1SDave Cobbley
1840d8f44bSBrandon KimSYSTEMD_SERVICE:${PN} += "${TMPL_OFF}"
19*e83c2209SPatrick WilliamsSYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}"
2040d8f44bSBrandon KimSYSTEMD_SERVICE:${PN} += "${TMPL_ON}"
21*e83c2209SPatrick WilliamsSYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}"
22194ff4f1SDave Cobbley
23194ff4f1SDave CobbleySRC_URI += "file://zaius_avsbus.sh"
2440d8f44bSBrandon KimRDEPENDS:${PN} += "i2c-tools"
25194ff4f1SDave Cobbley
26194ff4f1SDave Cobbleydo_install() {
27194ff4f1SDave Cobbley        install -d ${D}${bindir}
28194ff4f1SDave Cobbley        install -m 0755 ${WORKDIR}/zaius_avsbus.sh ${D}${bindir}/zaius_avsbus.sh
29194ff4f1SDave Cobbley}
30