1SUMMARY = "VRM Overrides" 2DESCRIPTION = "Sets VRMs to custom voltages" 3PR = "r1" 4LICENSE = "Apache-2.0" 5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 6 7inherit allarch 8inherit obmc-phosphor-systemd 9 10RDEPENDS:${PN} += "i2c-tools bash" 11 12S = "${WORKDIR}" 13SRC_URI = "file://ir35221-unbind-bind.sh" 14SRC_URI:append:ibm-ac-server = " file://vrm-control.sh" 15 16do_install() { 17 install -d ${D}${bindir} 18 install -m 0755 ${WORKDIR}/ir35221-unbind-bind.sh ${D}${bindir}/ir35221-unbind-bind.sh 19} 20 21do_install:append:ibm-ac-server() { 22 install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh 23} 24 25TMPL = "vrm-control@.service" 26INSTFMT = "vrm-control@{0}.service" 27TGTFMT_ON = "obmc-chassis-poweron@{0}.target" 28FMT_ON = "../${TMPL}:${TGTFMT_ON}.requires/${INSTFMT}" 29 30TMPL_ON_IRBIND = "ir35221-on-bind@.service" 31INSTFMT_ON_IRBIND = "ir35221-on-bind@{0}.service" 32FMT_ON_IRBIND = "../${TMPL_ON_IRBIND}:${TGTFMT_ON}.wants/${INSTFMT_ON_IRBIND}" 33 34TMPL_ON_IRUNBIND = "ir35221-on-unbind@.service" 35INSTFMT_ON_IRUNBIND = "ir35221-on-unbind@{0}.service" 36FMT_ON_IRUNBIND = "../${TMPL_ON_IRUNBIND}:${TGTFMT_ON}.requires/${INSTFMT_ON_IRUNBIND}" 37 38SYSTEMD_SERVICE:${PN} += "${TMPL_ON_IRUNBIND} ${TMPL_ON_IRBIND}" 39SYSTEMD_SERVICE:${PN}:append:ibm-ac-server = " ${TMPL}" 40SYSTEMD_LINK:${PN}:append:ibm-ac-server = " ${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" 41SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_ON_IRBIND', 'OBMC_CHASSIS_INSTANCES')}" 42SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_ON_IRUNBIND', 'OBMC_CHASSIS_INSTANCES')}" 43