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