blob: bd33c6382af3dded2be19b8e2e86e5c47b18b123 [file] [log] [blame]
Xo Wange1dcc232016-11-30 17:02:18 -08001DESCRIPTION = "Zaius host reference clock fixup"
2PR = "r0"
3
4inherit obmc-phosphor-systemd
5inherit obmc-phosphor-license
6
7TMPL = "op-refclock-fixup@.service"
8INSTFMT = "op-refclock-fixup@{0}.service"
Josh D. Kingb9ee5362017-04-06 14:43:46 -05009TGTFMT = "obmc-chassis-poweron@{0}.target"
Matt Spinler3dfd7e82017-03-30 08:38:28 -050010FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}"
Xo Wange1dcc232016-11-30 17:02:18 -080011
12SYSTEMD_SERVICE_${PN} += "${TMPL}"
13SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"
14
15SRC_URI += "file://fix_zaius_refclock.sh"
16RDEPENDS_${PN} += "i2c-tools"
17
18do_install() {
19 install -d ${D}${sbindir}
20 install -m 0755 ${WORKDIR}/fix_zaius_refclock.sh ${D}${sbindir}/fix_zaius_refclock.sh
21}