blob: f0e6eb0eaa9689303d1efc5fbf0e0aa6d6219bcf [file] [log] [blame]
Lei YUaaad5a52016-12-27 14:43:14 +08001SUMMARY = "Romulus VRM Overrides"
2DESCRIPTION = "Sets Rolumus VRMs to custom voltages"
3PR = "r1"
Patrick Venture9aee5012018-11-05 20:07:07 -08004LICENSE = "Apache-2.0"
Brad Bishopcbbb0e52019-09-13 13:06:15 -04005LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Lei YUaaad5a52016-12-27 14:43:14 +08006
7inherit obmc-phosphor-systemd
Lei YUaaad5a52016-12-27 14:43:14 +08008
9RDEPENDS_${PN} += "i2c-tools bash"
10
11S = "${WORKDIR}"
Lei YU574034e2017-01-05 11:15:47 +080012SRC_URI += "file://vrm-control.sh \
13 file://vrm.sh"
Lei YUaaad5a52016-12-27 14:43:14 +080014
15do_install() {
16 install -d ${D}${bindir}
Lei YU574034e2017-01-05 11:15:47 +080017 install -m 0755 ${WORKDIR}/vrm.sh ${D}${bindir}/vrm.sh
Lei YUaaad5a52016-12-27 14:43:14 +080018 install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh
19}
20
21TMPL = "vrm-control@.service"
22INSTFMT = "vrm-control@{0}.service"
Josh D. King5df2fe92017-04-06 14:43:46 -050023TGTFMT = "obmc-chassis-poweron@{0}.target"
Lei YUf2e12312017-02-20 10:22:27 +080024FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}"
Lei YUaaad5a52016-12-27 14:43:14 +080025
26SYSTEMD_SERVICE_${PN} += "${TMPL}"
27SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"