blob: af8babb5332bb52513f9a0b5c45d725483d683a0 [file] [log] [blame]
Matt Spinlerde4c6b02019-06-12 10:03:29 -05001SUMMARY = "Power device Workarounds"
2PR = "r1"
3LICENSE = "Apache-2.0"
Brad Bishopd77088a2019-09-13 13:06:15 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Matt Spinlerde4c6b02019-06-12 10:03:29 -05005
Brad Bishope3134ff2019-07-17 13:05:31 -04006inherit allarch
Matt Spinlerde4c6b02019-06-12 10:03:29 -05007inherit obmc-phosphor-systemd
8
9RDEPENDS_${PN} += "i2c-tools"
10
11S = "${WORKDIR}"
12
13SRC_URI += "file://power-workarounds.sh"
14
15do_install() {
16 install -d ${D}${bindir}
17 install -m 0755 ${S}/power-workarounds.sh ${D}${bindir}/power-workarounds.sh
18}
19
20TMPL_WA = "power-workarounds@.service"
21INSTFMT_WA = "power-workarounds@{0}.service"
22TGTFMT = "obmc-chassis-poweron@{0}.target"
23FMT_WA = "../${TMPL_WA}:${TGTFMT}.requires/${INSTFMT_WA}"
24
25SYSTEMD_SERVICE_${PN} += "${TMPL_WA}"
26SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_WA', 'OBMC_CHASSIS_INSTANCES')}"