Xo Wang | 95941be | 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" |
Josh D. King | f5ba927 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 9 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Matt Spinler | 12a619a | 2017-03-30 08:38:28 -0500 | [diff] [blame] | 10 | FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}" |
Xo Wang | 95941be | 2016-11-30 17:02:18 -0800 | [diff] [blame] | 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 | } |