1*194ff4f1SDave CobbleySUMMARY = "Zaius AVSBus control" 2*194ff4f1SDave CobbleyDESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Zaius" 3*194ff4f1SDave CobbleyPR = "r0" 4*194ff4f1SDave Cobbley 5*194ff4f1SDave Cobbleyinherit obmc-phosphor-systemd 6*194ff4f1SDave Cobbleyinherit obmc-phosphor-license 7*194ff4f1SDave Cobbley 8*194ff4f1SDave CobbleyTMPL_OFF = "avsbus-disable@.service" 9*194ff4f1SDave CobbleyTMPL_ON = "avsbus-enable@.service" 10*194ff4f1SDave CobbleyINSTFMT_OFF = "avsbus-disable@{0}.service" 11*194ff4f1SDave CobbleyINSTFMT_ON = "avsbus-enable@{0}.service" 12*194ff4f1SDave CobbleyTGTFMT_OFF = "obmc-host-stop@{0}.target" 13*194ff4f1SDave CobbleyTGTFMT_ON = "obmc-chassis-poweron@{0}.target" 14*194ff4f1SDave CobbleyFMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}" 15*194ff4f1SDave CobbleyFMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}" 16*194ff4f1SDave Cobbley 17*194ff4f1SDave CobbleySYSTEMD_SERVICE_${PN} += "${TMPL_OFF}" 18*194ff4f1SDave CobbleySYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}" 19*194ff4f1SDave CobbleySYSTEMD_SERVICE_${PN} += "${TMPL_ON}" 20*194ff4f1SDave CobbleySYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" 21*194ff4f1SDave Cobbley 22*194ff4f1SDave CobbleySRC_URI += "file://zaius_avsbus.sh" 23*194ff4f1SDave CobbleyRDEPENDS_${PN} += "i2c-tools" 24*194ff4f1SDave Cobbley 25*194ff4f1SDave Cobbleydo_install() { 26*194ff4f1SDave Cobbley install -d ${D}${bindir} 27*194ff4f1SDave Cobbley install -m 0755 ${WORKDIR}/zaius_avsbus.sh ${D}${bindir}/zaius_avsbus.sh 28*194ff4f1SDave Cobbley} 29