Brad Bishop | 86ee1cf | 2016-06-27 14:53:52 -0400 | [diff] [blame] | 1 | SUMMARY = "org.openbmc.control.Host implementation for OpenPOWER" |
| 2 | DESCRIPTION = "A host control implementation suitable for OpenPOWER systems." |
| 3 | PR = "r1" |
| 4 | |
| 5 | inherit skeleton-gdbus |
Brad Bishop | 0fe8046 | 2016-08-17 20:27:37 -0400 | [diff] [blame] | 6 | inherit obmc-phosphor-dbus-service |
Brad Bishop | 86ee1cf | 2016-06-27 14:53:52 -0400 | [diff] [blame] | 7 | |
Sergey Solomin | 7df1936 | 2016-11-28 15:03:24 -0600 | [diff] [blame] | 8 | PROVIDES += "virtual/obmc-host-ctl" |
| 9 | RPROVIDES_${PN} += "virtual-obmc-host-ctl" |
| 10 | |
Brad Bishop | 86ee1cf | 2016-06-27 14:53:52 -0400 | [diff] [blame] | 11 | SKELETON_DIR = "op-hostctl" |
Brad Bishop | 0fe8046 | 2016-08-17 20:27:37 -0400 | [diff] [blame] | 12 | |
| 13 | FMT = "org.openbmc.control.Host@{0}.service" |
| 14 | DBUS_SERVICE_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}" |
Andrew Geissler | 3a20659 | 2017-03-23 12:48:06 -0500 | [diff] [blame] | 15 | SYSTEMD_SERVICE_${PN} = " \ |
| 16 | op-start-host@.service \ |
| 17 | op-reset-host-check@.service \ |
| 18 | op-reset-host-running@.service \ |
| 19 | " |
Brad Bishop | 0fe8046 | 2016-08-17 20:27:37 -0400 | [diff] [blame] | 20 | |
| 21 | START_TMPL = "op-start-host@.service" |
| 22 | START_TGTFMT = "obmc-chassis-start@{1}.target" |
| 23 | START_INSTFMT = "obmc-start-host@{0}.service" |
Andrew Geissler | a31fba5 | 2017-02-08 15:54:25 -0600 | [diff] [blame] | 24 | START_FMT = "../${START_TMPL}:${START_TGTFMT}.requires/${START_INSTFMT}" |
Brad Bishop | 0fe8046 | 2016-08-17 20:27:37 -0400 | [diff] [blame] | 25 | |
Andrew Geissler | 3a20659 | 2017-03-23 12:48:06 -0500 | [diff] [blame] | 26 | RESET_CHECK_TMPL = "op-reset-host-check@.service" |
| 27 | RESET_CHECK_TGTFMT = "obmc-host-reset@{1}.target" |
| 28 | RESET_CHECK_INSTFMT = "op-reset-host-check@{0}.service" |
| 29 | RESET_CHECK_FMT = "../${RESET_CHECK_TMPL}:${RESET_CHECK_TGTFMT}.requires/${RESET_CHECK_INSTFMT}" |
| 30 | |
| 31 | RESET_RUNNING_TMPL = "op-reset-host-running@.service" |
| 32 | RESET_RUNNING_TGTFMT = "obmc-host-reset@{1}.target" |
| 33 | RESET_RUNNING_INSTFMT = "op-reset-host-running@{0}.service" |
| 34 | RESET_RUNNING_FMT = "../${RESET_RUNNING_TMPL}:${RESET_RUNNING_TGTFMT}.requires/${RESET_RUNNING_INSTFMT}" |
| 35 | |
Brad Bishop | 0fe8046 | 2016-08-17 20:27:37 -0400 | [diff] [blame] | 36 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'START_FMT', 'OBMC_HOST_INSTANCES', 'OBMC_CHASSIS_INSTANCES')}" |
Andrew Geissler | 3a20659 | 2017-03-23 12:48:06 -0500 | [diff] [blame] | 37 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'RESET_CHECK_FMT', 'OBMC_HOST_INSTANCES', 'OBMC_HOST_INSTANCES')}" |
| 38 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'RESET_RUNNING_FMT', 'OBMC_HOST_INSTANCES', 'OBMC_HOST_INSTANCES')}" |
| 39 | |
| 40 | # Force the standby target to run the host reset check target |
| 41 | RESET_TMPL_CTRL = "obmc-host-reset@.target" |
| 42 | SYSD_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 43 | RESET_INSTFMT_CTRL = "obmc-host-reset@{0}.target" |
| 44 | RESET_FMT_CTRL = "../${RESET_TMPL_CTRL}:${SYSD_TGT}.wants/${RESET_INSTFMT_CTRL}" |
| 45 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'RESET_FMT_CTRL', 'OBMC_HOST_INSTANCES')}" |