blob: bd33c6382af3dded2be19b8e2e86e5c47b18b123 [file] [log] [blame]
DESCRIPTION = "Zaius host reference clock fixup"
PR = "r0"
inherit obmc-phosphor-systemd
inherit obmc-phosphor-license
TMPL = "op-refclock-fixup@.service"
INSTFMT = "op-refclock-fixup@{0}.service"
TGTFMT = "obmc-chassis-poweron@{0}.target"
FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}"
SYSTEMD_SERVICE_${PN} += "${TMPL}"
SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"
SRC_URI += "file://fix_zaius_refclock.sh"
RDEPENDS_${PN} += "i2c-tools"
do_install() {
install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/fix_zaius_refclock.sh ${D}${sbindir}/fix_zaius_refclock.sh
}