blob: 854795be3828b6dd4a4874f67bb7deee5231fe44 [file] [log] [blame]
Alexander Filippovb7f7dbd2019-07-25 16:42:57 +03001SUMMARY = "Nicole AVSBus control"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${YADROBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
5
6inherit obmc-phosphor-systemd
7
8RDEPENDS_${PN} += "i2c-tools"
9
10S = "${WORKDIR}"
11SRC_URI += "file://avsbus-control.sh"
12
13do_install() {
14 install -d ${D}${bindir}
15 install -m 0755 ${WORKDIR}/avsbus-control.sh \
16 ${D}${bindir}/avsbus-control.sh
17}
18
19TMPL= "avsbus-control@.service"
20INSTFMT= "avsbus-control@{0}.service"
21TGTFMT = "obmc-chassis-poweron@{0}.target"
22FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}"
23
24SYSTEMD_SERVICE_${PN} += "${TMPL}"
25SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"