Matt Spinler | 5c7c388 | 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" |
Brad Bishop | 6738f35 | 2018-11-07 13:04:06 -0800 | [diff] [blame^] | 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${IBMBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Matt Spinler | 5c7c388 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 6 | |
| 7 | inherit obmc-phosphor-systemd |
Matt Spinler | 5c7c388 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 8 | |
| 9 | RDEPENDS_${PN} += "i2c-tools bash" |
| 10 | |
| 11 | S = "${WORKDIR}" |
Christopher Bostic | 1fd06ed | 2017-06-07 16:12:27 -0500 | [diff] [blame] | 12 | SRC_URI += "file://vrm-control.sh \ |
| 13 | file://ir35221-unbind-bind.sh" |
Matt Spinler | 5c7c388 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 14 | |
| 15 | do_install() { |
| 16 | install -d ${D}${bindir} |
| 17 | install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh |
Christopher Bostic | 1fd06ed | 2017-06-07 16:12:27 -0500 | [diff] [blame] | 18 | install -m 0755 ${WORKDIR}/ir35221-unbind-bind.sh ${D}${bindir}/ir35221-unbind-bind.sh |
Matt Spinler | 5c7c388 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | TMPL = "vrm-control@.service" |
| 22 | INSTFMT = "vrm-control@{0}.service" |
Christopher Bostic | 1fd06ed | 2017-06-07 16:12:27 -0500 | [diff] [blame] | 23 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
| 24 | FMT_ON = "../${TMPL}:${TGTFMT_ON}.requires/${INSTFMT}" |
Matt Spinler | 5c7c388 | 2016-12-20 09:28:21 -0600 | [diff] [blame] | 25 | |
Christopher Bostic | 1fd06ed | 2017-06-07 16:12:27 -0500 | [diff] [blame] | 26 | TMPL_ON_IRBIND = "ir35221-on-bind@.service" |
| 27 | INSTFMT_ON_IRBIND = "ir35221-on-bind@{0}.service" |
Matt Spinler | dd8cfa6 | 2018-05-25 12:34:32 -0500 | [diff] [blame] | 28 | FMT_ON_IRBIND = "../${TMPL_ON_IRBIND}:${TGTFMT_ON}.wants/${INSTFMT_ON_IRBIND}" |
Christopher Bostic | 1fd06ed | 2017-06-07 16:12:27 -0500 | [diff] [blame] | 29 | |
| 30 | TMPL_ON_IRUNBIND = "ir35221-on-unbind@.service" |
| 31 | INSTFMT_ON_IRUNBIND = "ir35221-on-unbind@{0}.service" |
| 32 | FMT_ON_IRUNBIND = "../${TMPL_ON_IRUNBIND}:${TGTFMT_ON}.requires/${INSTFMT_ON_IRUNBIND}" |
| 33 | |
Matt Spinler | 4129192 | 2017-12-05 15:25:53 -0600 | [diff] [blame] | 34 | SYSTEMD_SERVICE_${PN} += "${TMPL} ${TMPL_ON_IRUNBIND} ${TMPL_ON_IRBIND}" |
Christopher Bostic | 1fd06ed | 2017-06-07 16:12:27 -0500 | [diff] [blame] | 35 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" |
| 36 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON_IRBIND', 'OBMC_CHASSIS_INSTANCES')}" |
| 37 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ON_IRUNBIND', 'OBMC_CHASSIS_INSTANCES')}" |