Thu Nguyen | b3c8264 | 2022-09-07 05:41:06 +0700 | [diff] [blame] | 1 | SUMMARY = "Ampere Driver Binder Implementation" |
| 2 | DESCRIPTION = "The driver binder for Ampere Computing LLC's systems" |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 6 | |
| 7 | inherit systemd |
| 8 | inherit obmc-phosphor-systemd |
| 9 | |
| 10 | RDEPENDS:${PN} = "bash" |
| 11 | S = "${WORKDIR}" |
| 12 | |
| 13 | SRC_URI = " \ |
| 14 | file://ampere-power-on-driver-binder@.service \ |
| 15 | file://ampere-host-on-driver-binder@.service \ |
| 16 | " |
| 17 | |
| 18 | SYSTEMD_PACKAGES = "${PN}" |
| 19 | SYSTEMD_SERVICE:${PN} = " \ |
| 20 | ampere-power-on-driver-binder@.service \ |
| 21 | ampere-host-on-driver-binder@.service \ |
| 22 | " |
| 23 | # bind driver after the power is on |
| 24 | POWER_ON_DRIVER_BINDER_TGT = "ampere-power-on-driver-binder@.service" |
| 25 | POWER_ON_DRIVER_BINDER_INSTMPL = "ampere-power-on-driver-binder@{0}.service" |
| 26 | AMPER_POWER_ON = "obmc-power-already-on@{0}.target" |
| 27 | POWER_ON_DRIVER_BINDER_TARGET_FMT = "../${POWER_ON_DRIVER_BINDER_TGT}:${AMPER_POWER_ON}.wants/${POWER_ON_DRIVER_BINDER_INSTMPL}" |
| 28 | SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'POWER_ON_DRIVER_BINDER_TARGET_FMT', 'OBMC_HOST_INSTANCES')}" |
| 29 | |
| 30 | # bind driver after the host is on |
| 31 | HOST_ON_DRIVER_BINDER_TGT = "ampere-host-on-driver-binder@.service" |
| 32 | HOST_ON_DRIVER_BINDER_INSTMPL = "ampere-host-on-driver-binder@{0}.service" |
| 33 | AMPER_HOST_RUNNING = "obmc-host-already-on@{0}.target" |
| 34 | HOST_ON_DRIVER_BINDER_TARGET_FMT = "../${HOST_ON_DRIVER_BINDER_TGT}:${AMPER_HOST_RUNNING}.wants/${HOST_ON_DRIVER_BINDER_INSTMPL}" |
| 35 | SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'HOST_ON_DRIVER_BINDER_TARGET_FMT', 'OBMC_HOST_INSTANCES')}" |