Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 1 | SUMMARY = "Romulus VRM Overrides" |
| 2 | DESCRIPTION = "Sets Rolumus 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}" |
Lei YU | 2caa74e | 2017-01-05 11:15:47 +0800 | [diff] [blame] | 11 | SRC_URI += "file://vrm-control.sh \ |
| 12 | file://vrm.sh" |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 13 | |
| 14 | do_install() { |
| 15 | install -d ${D}${bindir} |
Lei YU | 2caa74e | 2017-01-05 11:15:47 +0800 | [diff] [blame] | 16 | install -m 0755 ${WORKDIR}/vrm.sh ${D}${bindir}/vrm.sh |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 17 | install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh |
| 18 | } |
| 19 | |
| 20 | TMPL = "vrm-control@.service" |
| 21 | INSTFMT = "vrm-control@{0}.service" |
Josh D. King | b9ee536 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 22 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Lei YU | feb59cb | 2017-02-20 10:22:27 +0800 | [diff] [blame] | 23 | FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}" |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 24 | |
| 25 | SYSTEMD_SERVICE_${PN} += "${TMPL}" |
| 26 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |