Brian Yang | b0b8c64 | 2018-07-10 02:02:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Lanyang AVSBus control" |
| 2 | DESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Lanyang" |
| 3 | PR = "r0" |
Patrick Venture | d619fd8 | 2018-11-06 09:35:44 -0800 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${INVENTECBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Brian Yang | b0b8c64 | 2018-07-10 02:02:53 -0400 | [diff] [blame] | 6 | |
| 7 | inherit obmc-phosphor-systemd |
Brian Yang | b0b8c64 | 2018-07-10 02:02:53 -0400 | [diff] [blame] | 8 | |
| 9 | TMPL_OFF = "avsbus-disable@.service" |
| 10 | TMPL_ON = "avsbus-enable@.service" |
| 11 | INSTFMT_OFF = "avsbus-disable@{0}.service" |
| 12 | INSTFMT_ON = "avsbus-enable@{0}.service" |
| 13 | TGTFMT_OFF = "obmc-host-stop@{0}.target" |
| 14 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
| 15 | FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}" |
| 16 | FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}" |
| 17 | |
| 18 | SYSTEMD_SERVICE_${PN} += "${TMPL_OFF}" |
| 19 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_OFF', 'OBMC_CHASSIS_INSTANCES')}" |
| 20 | SYSTEMD_SERVICE_${PN} += "${TMPL_ON}" |
| 21 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" |
| 22 | |
| 23 | SRC_URI += "file://lanyang_avsbus.sh" |
| 24 | RDEPENDS_${PN} += "i2c-tools" |
| 25 | |
| 26 | do_install() { |
| 27 | install -d ${D}${bindir} |
| 28 | install -m 0755 ${WORKDIR}/lanyang_avsbus.sh ${D}${bindir}/lanyang_avsbus.sh |
| 29 | } |