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" |
Brad Bishop | 136ad77 | 2019-09-13 13:59:59 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Alexander Filippov | b7f7dbd | 2019-07-25 16:42:57 +0300 | [diff] [blame] | 5 | |
| 6 | inherit obmc-phosphor-systemd |
| 7 | |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 8 | RDEPENDS:${PN} += "i2c-tools" |
Alexander Filippov | b7f7dbd | 2019-07-25 16:42:57 +0300 | [diff] [blame] | 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 | |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 24 | SYSTEMD_SERVICE:${PN} += "${TMPL}" |
Alexander Filippov | b7f7dbd | 2019-07-25 16:42:57 +0300 | [diff] [blame] | 25 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |