Matt Spinler | c103747 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 1 | SUMMARY = "Witherspoon VRM Overrides" |
| 2 | DESCRIPTION = "Sets Witherspoon VRMs to custom voltages" |
| 3 | PR = "r1" |
| 4 | |
| 5 | inherit obmc-phosphor-systemd |
| 6 | inherit obmc-phosphor-license |
| 7 | |
| 8 | RDEPENDS_${PN} += "i2c-tools bash" |
| 9 | |
| 10 | S = "${WORKDIR}" |
| 11 | SRC_URI += "file://vrm-control.sh" |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${bindir} |
| 15 | install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh |
| 16 | } |
| 17 | |
| 18 | TMPL = "vrm-control@.service" |
| 19 | INSTFMT = "vrm-control@{0}.service" |
Josh D. King | 5df2fe9 | 2017-04-06 14:43:46 -0500 | [diff] [blame^] | 20 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Andrew Geissler | 1710097 | 2017-02-08 15:54:25 -0600 | [diff] [blame] | 21 | FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}" |
Matt Spinler | c103747 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 22 | |
| 23 | SYSTEMD_SERVICE_${PN} += "${TMPL}" |
| 24 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |