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" |
| 4 | |
Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 5 | require ${PN}.inc |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 6 | |
Dhruvaraj Subhashchandran | e1266ad | 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 | |
| 15 | PACKAGES += "${LED_MGR_PACKAGES}" |
| 16 | PACKAGES_remove = "${PN}" |
| 17 | |
| 18 | DBUS_PACKAGES = "${PN}-ledmanager" |
| 19 | |
| 20 | SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}" |
| 21 | |
| 22 | RDEPENDS_${PN}-dev = "${LED_MGR_PACKAGES}" |
| 23 | RDEPENDS_${PN}-staticdev = "${LED_MGR_PACKAGES}" |
| 24 | |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 25 | DEPENDS += "python-pyyaml-native" |
| 26 | DEPENDS += "autoconf-archive-native" |
| 27 | DEPENDS += "sdbusplus sdbusplus-native" |
Ratan Gupta | 83fff10 | 2017-03-14 14:50:04 +0530 | [diff] [blame] | 28 | DEPENDS += "phosphor-logging" |
| 29 | |
Vishwanatha Subbanna | 8bec825 | 2017-02-11 22:10:23 +0530 | [diff] [blame] | 30 | DEPENDS += "virtual/${PN}-config-native" |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 31 | RDEPENDS_${PN}-ledmanager += "libsystemd" |
| 32 | RDEPENDS_${PN}-ledmanager += "phosphor-logging" |
| 33 | |
| 34 | RDEPENDS_${PN}-faultmonitor += "libsystemd" |
| 35 | RDEPENDS_${PN}-faultmonitor += "phosphor-logging" |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 36 | |
Vishwanatha Subbanna | 0803398 | 2017-01-09 15:00:38 +0530 | [diff] [blame] | 37 | S = "${WORKDIR}/git" |
| 38 | |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 39 | FILES_${PN}-ledmanager += "${sbindir}/phosphor-ledmanager" |
| 40 | FILES_${PN}-faultmonitor += "${sbindir}/phosphor-fru-fault-monitor" |
Vishwanatha Subbanna | 7e84c6e | 2017-01-23 16:04:35 +0530 | [diff] [blame] | 41 | |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 42 | DBUS_SERVICE_${PN}-ledmanager += "xyz.openbmc_project.LED.GroupManager.service" |
| 43 | |
| 44 | SYSTEMD_SERVICE_${PN}-ledmanager += "obmc-led-group-start@.service obmc-led-group-stop@.service" |
| 45 | SYSTEMD_SERVICE_${PN}-faultmonitor += "obmc-fru-fault-monitor.service" |
| 46 | |
| 47 | 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] | 48 | |
| 49 | STATES = "start stop" |
| 50 | TMPLFMT = "obmc-led-group-{0}@.service" |
| 51 | TGTFMT = "obmc-power-{0}@0.target" |
| 52 | INSTFMT = "obmc-led-group-{0}@power_on.service" |
| 53 | FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}" |
Dhruvaraj Subhashchandran | e1266ad | 2017-04-27 05:29:56 -0500 | [diff] [blame] | 54 | SYSTEMD_LINK_${PN}-ledmanager += "${@compose_list(d, 'FMT', 'STATES')}" |
| 55 | |
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}" |