Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 1 | SUMMARY = "Witherspoon AVSBus control" |
| 2 | PR = "r1" |
Brad Bishop | 6738f35 | 2018-11-07 13:04:06 -0800 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${IBMBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 5 | |
Brad Bishop | 88296b8 | 2019-06-19 16:32:15 -0400 | [diff] [blame^] | 6 | inherit allarch |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 7 | inherit obmc-phosphor-systemd |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 8 | |
| 9 | RDEPENDS_${PN} += "i2c-tools" |
| 10 | |
| 11 | S = "${WORKDIR}" |
Adriana Kobylak | 0043501 | 2019-05-09 11:44:47 -0500 | [diff] [blame] | 12 | |
| 13 | SRC_URI += "file://avsbus-disable.sh \ |
Matt Spinler | de4c6b0 | 2019-06-12 10:03:29 -0500 | [diff] [blame] | 14 | file://avsbus-enable.sh" |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 15 | |
| 16 | do_install() { |
| 17 | install -d ${D}${bindir} |
Adriana Kobylak | 0043501 | 2019-05-09 11:44:47 -0500 | [diff] [blame] | 18 | install -m 0755 ${S}/avsbus-disable.sh ${D}${bindir}/avsbus-disable.sh |
| 19 | install -m 0755 ${S}/avsbus-enable.sh ${D}${bindir}/avsbus-enable.sh |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | TMPL_EN= "avsbus-enable@.service" |
| 23 | TMPL_DIS= "avsbus-disable@.service" |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 24 | INSTFMT_EN= "avsbus-enable@{0}.service" |
| 25 | INSTFMT_DIS= "avsbus-disable@{0}.service" |
Josh D. King | b9ee536 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 26 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Andrew Geissler | 3c35a8c | 2017-02-08 15:54:25 -0600 | [diff] [blame] | 27 | FMT_EN = "../${TMPL_EN}:${TGTFMT}.requires/${INSTFMT_EN}" |
| 28 | FMT_DIS = "../${TMPL_DIS}:${TGTFMT}.requires/${INSTFMT_DIS}" |
Matt Spinler | 76e9a06 | 2016-12-20 10:59:13 -0600 | [diff] [blame] | 29 | |
| 30 | SYSTEMD_SERVICE_${PN} += "${TMPL_EN}" |
| 31 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_EN', 'OBMC_CHASSIS_INSTANCES')}" |
| 32 | SYSTEMD_SERVICE_${PN} += "${TMPL_DIS}" |
| 33 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_DIS', 'OBMC_CHASSIS_INSTANCES')}" |