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