Matt Spinler | de4c6b0 | 2019-06-12 10:03:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Power device Workarounds" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
Brad Bishop | d77088a | 2019-09-13 13:06:15 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Matt Spinler | de4c6b0 | 2019-06-12 10:03:29 -0500 | [diff] [blame] | 5 | |
Brad Bishop | e3134ff | 2019-07-17 13:05:31 -0400 | [diff] [blame] | 6 | inherit allarch |
Matt Spinler | de4c6b0 | 2019-06-12 10:03:29 -0500 | [diff] [blame] | 7 | inherit obmc-phosphor-systemd |
| 8 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 9 | RDEPENDS:${PN} += "i2c-tools" |
Matt Spinler | de4c6b0 | 2019-06-12 10:03:29 -0500 | [diff] [blame] | 10 | |
| 11 | S = "${WORKDIR}" |
| 12 | |
| 13 | SRC_URI += "file://power-workarounds.sh" |
| 14 | |
| 15 | do_install() { |
| 16 | install -d ${D}${bindir} |
| 17 | install -m 0755 ${S}/power-workarounds.sh ${D}${bindir}/power-workarounds.sh |
| 18 | } |
| 19 | |
| 20 | TMPL_WA = "power-workarounds@.service" |
| 21 | INSTFMT_WA = "power-workarounds@{0}.service" |
| 22 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
| 23 | FMT_WA = "../${TMPL_WA}:${TGTFMT}.requires/${INSTFMT_WA}" |
| 24 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 25 | SYSTEMD_SERVICE:${PN} += "${TMPL_WA}" |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 26 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_WA', 'OBMC_CHASSIS_INSTANCES')}" |