Lei YU | aaad5a5 | 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" |
Patrick Venture | 9aee501 | 2018-11-05 20:07:07 -0800 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
Brad Bishop | cbbb0e5 | 2019-09-13 13:06:15 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Lei YU | aaad5a5 | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 6 | |
| 7 | inherit obmc-phosphor-systemd |
Lei YU | aaad5a5 | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 8 | |
| 9 | RDEPENDS_${PN} += "i2c-tools bash" |
| 10 | |
| 11 | S = "${WORKDIR}" |
Lei YU | 574034e | 2017-01-05 11:15:47 +0800 | [diff] [blame] | 12 | SRC_URI += "file://vrm-control.sh \ |
| 13 | file://vrm.sh" |
Lei YU | aaad5a5 | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 14 | |
| 15 | do_install() { |
| 16 | install -d ${D}${bindir} |
Lei YU | 574034e | 2017-01-05 11:15:47 +0800 | [diff] [blame] | 17 | install -m 0755 ${WORKDIR}/vrm.sh ${D}${bindir}/vrm.sh |
Lei YU | aaad5a5 | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 18 | install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh |
| 19 | } |
| 20 | |
| 21 | TMPL = "vrm-control@.service" |
| 22 | INSTFMT = "vrm-control@{0}.service" |
Josh D. King | 5df2fe9 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 23 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Lei YU | f2e1231 | 2017-02-20 10:22:27 +0800 | [diff] [blame] | 24 | FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}" |
Lei YU | aaad5a5 | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 25 | |
| 26 | SYSTEMD_SERVICE_${PN} += "${TMPL}" |
| 27 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |