blob: ac2c585ec56fb42aca3d99bcafd5cfd5cc974d96 [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-start@{0}.target"
FMT = "../${TMPL}:${TGTFMT}.wants/${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
}