Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 1 | SUMMARY = "Romulus AVSBus control" |
| 2 | PR = "r1" |
Brad Bishop | 6738f35 | 2018-11-07 13:04:06 -0800 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
Brad Bishop | d77088a | 2019-09-13 13:06:15 -0400 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 5 | |
| 6 | inherit obmc-phosphor-systemd |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 7 | |
| 8 | RDEPENDS_${PN} += "i2c-tools bash" |
| 9 | |
| 10 | S = "${WORKDIR}" |
Joel Stanley | 8b98be1 | 2018-10-31 12:24:32 +1030 | [diff] [blame] | 11 | SRC_URI += "file://avsbus-enable.sh \ |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 12 | file://avsbus-disable.sh" |
| 13 | |
| 14 | do_install() { |
| 15 | install -d ${D}${bindir} |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [diff] [blame] | 16 | install -m 0755 ${WORKDIR}/avsbus-disable.sh \ |
| 17 | ${D}${bindir}/avsbus-disable.sh |
| 18 | install -m 0755 ${WORKDIR}/avsbus-enable.sh \ |
| 19 | ${D}${bindir}/avsbus-enable.sh |
| 20 | } |
| 21 | |
| 22 | TMPL_EN= "avsbus-enable@.service" |
| 23 | TMPL_DIS= "avsbus-disable@.service" |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [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" |
Lei YU | feb59cb | 2017-02-20 10:22:27 +0800 | [diff] [blame] | 27 | FMT_EN = "../${TMPL_EN}:${TGTFMT}.requires/${INSTFMT_EN}" |
| 28 | FMT_DIS = "../${TMPL_DIS}:${TGTFMT}.requires/${INSTFMT_DIS}" |
Lei YU | 3dd1eea | 2016-12-27 14:43:14 +0800 | [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')}" |