blob: 22c98bcfe241da802ea2733eb759a78e19dd9094 [file] [log] [blame]
Vishwanatha Subbanna08033982017-01-09 15:00:38 +05301SUMMARY = "Phosphor LED Group Management Daemon"
2DESCRIPTION = "Daemon to cater to triggering actions on LED groups"
Vishwanatha Subbanna08033982017-01-09 15:00:38 +05303PR = "r1"
4
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05305require ${PN}.inc
Vishwanatha Subbanna08033982017-01-09 15:00:38 +05306
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -05007inherit autotools pkgconfig pythonnative
8inherit obmc-phosphor-dbus-service obmc-phosphor-systemd
9
10LED_MGR_PACKAGES = " \
11 ${PN}-ledmanager \
12 ${PN}-faultmonitor \
13"
14
15PACKAGES += "${LED_MGR_PACKAGES}"
16PACKAGES_remove = "${PN}"
17
18DBUS_PACKAGES = "${PN}-ledmanager"
19
20SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}"
21
22RDEPENDS_${PN}-dev = "${LED_MGR_PACKAGES}"
23RDEPENDS_${PN}-staticdev = "${LED_MGR_PACKAGES}"
24
Vishwanatha Subbanna08033982017-01-09 15:00:38 +053025DEPENDS += "python-pyyaml-native"
26DEPENDS += "autoconf-archive-native"
27DEPENDS += "sdbusplus sdbusplus-native"
Ratan Gupta83fff102017-03-14 14:50:04 +053028DEPENDS += "phosphor-logging"
29
Vishwanatha Subbanna8bec8252017-02-11 22:10:23 +053030DEPENDS += "virtual/${PN}-config-native"
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050031RDEPENDS_${PN}-ledmanager += "libsystemd"
32RDEPENDS_${PN}-ledmanager += "phosphor-logging"
33
34RDEPENDS_${PN}-faultmonitor += "libsystemd"
35RDEPENDS_${PN}-faultmonitor += "phosphor-logging"
Vishwanatha Subbanna08033982017-01-09 15:00:38 +053036
Vishwanatha Subbanna08033982017-01-09 15:00:38 +053037S = "${WORKDIR}/git"
38
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050039FILES_${PN}-ledmanager += "${sbindir}/phosphor-ledmanager"
40FILES_${PN}-faultmonitor += "${sbindir}/phosphor-fru-fault-monitor"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053041
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050042DBUS_SERVICE_${PN}-ledmanager += "xyz.openbmc_project.LED.GroupManager.service"
43
44SYSTEMD_SERVICE_${PN}-ledmanager += "obmc-led-group-start@.service obmc-led-group-stop@.service"
45SYSTEMD_SERVICE_${PN}-faultmonitor += "obmc-fru-fault-monitor.service"
46
47SYSTEMD_LINK_${PN}-ledmanager += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@bmc_booted.service"
Vishwanatha Subbannaa075b962017-03-27 14:36:58 +053048
49STATES = "start stop"
50TMPLFMT = "obmc-led-group-{0}@.service"
51TGTFMT = "obmc-power-{0}@0.target"
52INSTFMT = "obmc-led-group-{0}@power_on.service"
53FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}"
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050054SYSTEMD_LINK_${PN}-ledmanager += "${@compose_list(d, 'FMT', 'STATES')}"
55
Vishwanatha Subbanna51f391d2017-07-19 02:25:13 -050056# Install the override to set up a Conflicts relation
57SYSTEMD_OVERRIDE_${PN}-ledmanager += "bmc_booted.conf:obmc-led-group-start@bmc_booted.service.d/bmc_booted.conf"
Vishwanatha Subbannaa075b962017-03-27 14:36:58 +053058
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053059EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}"