blob: 3e376e12b9e923b9c840f1eca966d38ad65258b0 [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
Andrei Kartashev0f66db42021-08-17 21:47:15 +03008RDEPENDS:${PN} += "i2c-tools"
Alexander Filippovb7f7dbd2019-07-25 16:42:57 +03009
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
Andrei Kartashev0f66db42021-08-17 21:47:15 +030024SYSTEMD_SERVICE:${PN} += "${TMPL}"
Alexander Filippovb7f7dbd2019-07-25 16:42:57 +030025SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"