Vishwanatha Subbanna | 0803398 | 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 | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 3 | PR = "r1" |
Patrick Venture | 6dc4c9a | 2018-10-24 12:55:20 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 5 | |
Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 6 | require ${PN}.inc |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 7 | |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 8 | inherit autotools pkgconfig pythonnative |
| 9 | inherit obmc-phosphor-dbus-service obmc-phosphor-systemd |
| 10 | |
| 11 | LED_MGR_PACKAGES = " \ |
| 12 | ${PN}-ledmanager \ |
| 13 | ${PN}-faultmonitor \ |
| 14 | " |
| 15 | |
Brad Bishop | 196e1fc | 2018-04-11 11:43:28 -0400 | [diff] [blame] | 16 | PACKAGE_BEFORE_PN += "${LED_MGR_PACKAGES}" |
| 17 | ALLOW_EMPTY_${PN} = "1" |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 18 | |
| 19 | DBUS_PACKAGES = "${PN}-ledmanager" |
| 20 | |
| 21 | SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}" |
| 22 | |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 23 | DEPENDS += "python-pyyaml-native" |
| 24 | DEPENDS += "autoconf-archive-native" |
| 25 | DEPENDS += "sdbusplus sdbusplus-native" |
Ratan Gupta | 83fff10 | 2017-03-14 14:50:04 +0530 | [diff] [blame] | 26 | DEPENDS += "phosphor-logging" |
| 27 | |
Vishwanatha Subbanna | 8bec825 | 2017-02-11 22:10:23 +0530 | [diff] [blame] | 28 | DEPENDS += "virtual/${PN}-config-native" |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 29 | RDEPENDS_${PN}-ledmanager += "libsystemd" |
| 30 | RDEPENDS_${PN}-ledmanager += "phosphor-logging" |
| 31 | |
| 32 | RDEPENDS_${PN}-faultmonitor += "libsystemd" |
| 33 | RDEPENDS_${PN}-faultmonitor += "phosphor-logging" |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 34 | |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 35 | S = "${WORKDIR}/git" |
| 36 | |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 37 | FILES_${PN}-ledmanager += "${sbindir}/phosphor-ledmanager" |
| 38 | FILES_${PN}-faultmonitor += "${sbindir}/phosphor-fru-fault-monitor" |
Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 39 | |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 40 | DBUS_SERVICE_${PN}-ledmanager += "xyz.openbmc_project.LED.GroupManager.service" |
| 41 | |
| 42 | SYSTEMD_SERVICE_${PN}-ledmanager += "obmc-led-group-start@.service obmc-led-group-stop@.service" |
| 43 | SYSTEMD_SERVICE_${PN}-faultmonitor += "obmc-fru-fault-monitor.service" |
| 44 | |
| 45 | SYSTEMD_LINK_${PN}-ledmanager += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@bmc_booted.service" |
Vishwanatha Subbanna | a075b96 | 2017-03-27 14:36:58 +0530 | [diff] [blame] | 46 | |
| 47 | STATES = "start stop" |
| 48 | TMPLFMT = "obmc-led-group-{0}@.service" |
| 49 | TGTFMT = "obmc-power-{0}@0.target" |
| 50 | INSTFMT = "obmc-led-group-{0}@power_on.service" |
| 51 | FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}" |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 52 | SYSTEMD_LINK_${PN}-ledmanager += "${@compose_list(d, 'FMT', 'STATES')}" |
| 53 | |
Vishwanatha Subbanna | 51f391d | 2017-07-19 02:25:13 -0500 | [diff] [blame] | 54 | # Install the override to set up a Conflicts relation |
| 55 | SYSTEMD_OVERRIDE_${PN}-ledmanager += "bmc_booted.conf:obmc-led-group-start@bmc_booted.service.d/bmc_booted.conf" |
Vishwanatha Subbanna | a075b96 | 2017-03-27 14:36:58 +0530 | [diff] [blame] | 56 | |
Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 57 | EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}" |