Xo Wang | 95941be | 2016-11-30 17:02:18 -0800 | [diff] [blame] | 1 | DESCRIPTION = "Zaius host reference clock fixup" |
| 2 | PR = "r0" |
Patrick Venture | f266eda | 2018-11-05 19:51:50 -0800 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${INGRASYSBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Xo Wang | 95941be | 2016-11-30 17:02:18 -0800 | [diff] [blame] | 5 | |
| 6 | inherit obmc-phosphor-systemd |
Xo Wang | 95941be | 2016-11-30 17:02:18 -0800 | [diff] [blame] | 7 | |
| 8 | TMPL = "op-refclock-fixup@.service" |
| 9 | INSTFMT = "op-refclock-fixup@{0}.service" |
Josh D. King | f5ba927 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 10 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Matt Spinler | 12a619a | 2017-03-30 08:38:28 -0500 | [diff] [blame] | 11 | FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}" |
Xo Wang | 95941be | 2016-11-30 17:02:18 -0800 | [diff] [blame] | 12 | |
| 13 | SYSTEMD_SERVICE_${PN} += "${TMPL}" |
| 14 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 15 | |
| 16 | SRC_URI += "file://fix_zaius_refclock.sh" |
| 17 | RDEPENDS_${PN} += "i2c-tools" |
| 18 | |
| 19 | do_install() { |
| 20 | install -d ${D}${sbindir} |
| 21 | install -m 0755 ${WORKDIR}/fix_zaius_refclock.sh ${D}${sbindir}/fix_zaius_refclock.sh |
| 22 | } |