blob: 767da632ef027648dfa62f7c9b7d848a2795b650 [file] [log] [blame]
Brian Yangfb6b4502018-07-10 02:02:53 -04001SUMMARY = "Lanyang AVSBus control"
2DESCRIPTION = "Voltage regulator module (VRM) AVSBus control for Lanyang"
3PR = "r0"
Brad Bishop86e82602018-11-06 09:36:08 -08004LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://${INVENTECBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Brian Yangfb6b4502018-07-10 02:02:53 -04006
7inherit obmc-phosphor-systemd
Brian Yangfb6b4502018-07-10 02:02:53 -04008
9TMPL_OFF = "avsbus-disable@.service"
10TMPL_ON = "avsbus-enable@.service"
11INSTFMT_OFF = "avsbus-disable@{0}.service"
12INSTFMT_ON = "avsbus-enable@{0}.service"
13TGTFMT_OFF = "obmc-host-stop@{0}.target"
14TGTFMT_ON = "obmc-chassis-poweron@{0}.target"
15FMT_OFF = "../${TMPL_OFF}:${TGTFMT_OFF}.wants/${INSTFMT_OFF}"
16FMT_ON = "../${TMPL_ON}:${TGTFMT_ON}.requires/${INSTFMT_ON}"
17
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://lanyang_avsbus.sh"
24RDEPENDS_${PN} += "i2c-tools"
25
26do_install() {
27 install -d ${D}${bindir}
28 install -m 0755 ${WORKDIR}/lanyang_avsbus.sh ${D}${bindir}/lanyang_avsbus.sh
29}