Vishwanatha Subbanna | 5fe31d4 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor LED Group Management Daemon" |
| 2 | DESCRIPTION = "Daemon to cater to triggering actions on LED groups" |
Vishwanatha Subbanna | 5fe31d4 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 3 | PR = "r1" |
| 4 | |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 5 | require ${PN}.inc |
Vishwanatha Subbanna | 5fe31d4 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 6 | |
Dhruvaraj Subhashchandran | 6a1b0fc | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 7 | inherit autotools pkgconfig pythonnative |
| 8 | inherit obmc-phosphor-dbus-service obmc-phosphor-systemd |
| 9 | |
| 10 | LED_MGR_PACKAGES = " \ |
| 11 | ${PN}-ledmanager \ |
| 12 | ${PN}-faultmonitor \ |
| 13 | " |
| 14 | |
Brad Bishop | b0581b5 | 2018-04-11 11:43:28 -0400 | [diff] [blame] | 15 | PACKAGE_BEFORE_PN += "${LED_MGR_PACKAGES}" |
| 16 | ALLOW_EMPTY_${PN} = "1" |
Dhruvaraj Subhashchandran | 6a1b0fc | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 17 | |
| 18 | DBUS_PACKAGES = "${PN}-ledmanager" |
| 19 | |
| 20 | SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}" |
| 21 | |
Vishwanatha Subbanna | 5fe31d4 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 22 | DEPENDS += "python-pyyaml-native" |
| 23 | DEPENDS += "autoconf-archive-native" |
| 24 | DEPENDS += "sdbusplus sdbusplus-native" |
Ratan Gupta | 0e64291 | 2017-03-14 14:50:04 +0530 | [diff] [blame] | 25 | DEPENDS += "phosphor-logging" |
| 26 | |
Vishwanatha Subbanna | 7f07e7d | 2017-02-11 22:10:23 +0530 | [diff] [blame] | 27 | DEPENDS += "virtual/${PN}-config-native" |
Dhruvaraj Subhashchandran | 6a1b0fc | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 28 | RDEPENDS_${PN}-ledmanager += "libsystemd" |
| 29 | RDEPENDS_${PN}-ledmanager += "phosphor-logging" |
| 30 | |
| 31 | RDEPENDS_${PN}-faultmonitor += "libsystemd" |
| 32 | RDEPENDS_${PN}-faultmonitor += "phosphor-logging" |
Vishwanatha Subbanna | 5fe31d4 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 33 | |
Vishwanatha Subbanna | 5fe31d4 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 34 | S = "${WORKDIR}/git" |
| 35 | |
Dhruvaraj Subhashchandran | 6a1b0fc | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 36 | FILES_${PN}-ledmanager += "${sbindir}/phosphor-ledmanager" |
| 37 | FILES_${PN}-faultmonitor += "${sbindir}/phosphor-fru-fault-monitor" |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 38 | |
Dhruvaraj Subhashchandran | 6a1b0fc | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 39 | DBUS_SERVICE_${PN}-ledmanager += "xyz.openbmc_project.LED.GroupManager.service" |
| 40 | |
| 41 | SYSTEMD_SERVICE_${PN}-ledmanager += "obmc-led-group-start@.service obmc-led-group-stop@.service" |
| 42 | SYSTEMD_SERVICE_${PN}-faultmonitor += "obmc-fru-fault-monitor.service" |
| 43 | |
| 44 | SYSTEMD_LINK_${PN}-ledmanager += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@bmc_booted.service" |
Vishwanatha Subbanna | 95b3151 | 2017-03-27 14:36:58 +0530 | [diff] [blame] | 45 | |
| 46 | STATES = "start stop" |
| 47 | TMPLFMT = "obmc-led-group-{0}@.service" |
| 48 | TGTFMT = "obmc-power-{0}@0.target" |
| 49 | INSTFMT = "obmc-led-group-{0}@power_on.service" |
| 50 | FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}" |
Dhruvaraj Subhashchandran | 6a1b0fc | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 51 | SYSTEMD_LINK_${PN}-ledmanager += "${@compose_list(d, 'FMT', 'STATES')}" |
| 52 | |
Vishwanatha Subbanna | e922ca6 | 2017-07-19 02:25:13 -0500 | [diff] [blame] | 53 | # Install the override to set up a Conflicts relation |
| 54 | SYSTEMD_OVERRIDE_${PN}-ledmanager += "bmc_booted.conf:obmc-led-group-start@bmc_booted.service.d/bmc_booted.conf" |
Vishwanatha Subbanna | 95b3151 | 2017-03-27 14:36:58 +0530 | [diff] [blame] | 55 | |
Vishwanatha Subbanna | 96d8365 | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 56 | EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}" |