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