blob: 1865e61e83a0641e650780ed8185f076d71ffbec [file] [log] [blame]
Alexander Filippovb7f7dbd2019-07-25 16:42:57 +03001SUMMARY = "Nicole AVSBus control"
2PR = "r1"
3LICENSE = "Apache-2.0"
Brad Bishop136ad772019-09-13 13:59:59 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Alexander Filippovb7f7dbd2019-07-25 16:42:57 +03005
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')}"