blob: ac2c585ec56fb42aca3d99bcafd5cfd5cc974d96 [file] [log] [blame]
Xo Wange9a69602016-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"
9TGTFMT = "obmc-chassis-start@{0}.target"
10FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}"
11
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}