blob: 4784f31729596bab1724ce9327dc8ce007f937df [file] [log] [blame]
Xo Wang95941be2016-11-30 17:02:18 -08001DESCRIPTION = "Zaius host reference clock fixup"
2PR = "r0"
Patrick Venturef266eda2018-11-05 19:51:50 -08003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${INGRASYSBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Xo Wang95941be2016-11-30 17:02:18 -08005
6inherit obmc-phosphor-systemd
Xo Wang95941be2016-11-30 17:02:18 -08007
8TMPL = "op-refclock-fixup@.service"
9INSTFMT = "op-refclock-fixup@{0}.service"
Josh D. Kingf5ba9272017-04-06 14:43:46 -050010TGTFMT = "obmc-chassis-poweron@{0}.target"
Matt Spinler12a619a2017-03-30 08:38:28 -050011FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}"
Xo Wang95941be2016-11-30 17:02:18 -080012
13SYSTEMD_SERVICE_${PN} += "${TMPL}"
14SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"
15
16SRC_URI += "file://fix_zaius_refclock.sh"
17RDEPENDS_${PN} += "i2c-tools"
18
19do_install() {
20 install -d ${D}${sbindir}
21 install -m 0755 ${WORKDIR}/fix_zaius_refclock.sh ${D}${sbindir}/fix_zaius_refclock.sh
22}