Xo Wang | e9a6960 | 2016-11-30 17:02:18 -0800 | [diff] [blame] | 1 | DESCRIPTION = "Zaius host reference clock fixup" |
| 2 | PR = "r0" |
| 3 | |
| 4 | inherit obmc-phosphor-systemd |
| 5 | inherit obmc-phosphor-license |
| 6 | |
| 7 | TMPL = "op-refclock-fixup@.service" |
| 8 | INSTFMT = "op-refclock-fixup@{0}.service" |
| 9 | TGTFMT = "obmc-chassis-start@{0}.target" |
| 10 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 11 | |
| 12 | SYSTEMD_SERVICE_${PN} += "${TMPL}" |
| 13 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 14 | |
| 15 | SRC_URI += "file://fix_zaius_refclock.sh" |
| 16 | RDEPENDS_${PN} += "i2c-tools" |
| 17 | |
| 18 | do_install() { |
| 19 | install -d ${D}${sbindir} |
| 20 | install -m 0755 ${WORKDIR}/fix_zaius_refclock.sh ${D}${sbindir}/fix_zaius_refclock.sh |
| 21 | } |