1194ff4f1SDave CobbleySUMMARY = "Zaius AVSBus control" 2194ff4f1SDave CobbleyDESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Zaius" 3194ff4f1SDave CobbleyPR = "r0" 4*71d01e28SBrad BishopLICENSE = "Apache-2.0" 5*71d01e28SBrad BishopLIC_FILES_CHKSUM = "file://${INGRASYSBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" 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 18194ff4f1SDave CobbleySYSTEMD_SERVICE_${PN} += "${TMPL_OFF}" 19194ff4f1SDave CobbleySYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}" 20194ff4f1SDave CobbleySYSTEMD_SERVICE_${PN} += "${TMPL_ON}" 21194ff4f1SDave CobbleySYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" 22194ff4f1SDave Cobbley 23194ff4f1SDave CobbleySRC_URI += "file://zaius_avsbus.sh" 24194ff4f1SDave CobbleyRDEPENDS_${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