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