blob: d501d332a10c82ce9f793bf08135b34a1b2d805d [file] [log] [blame]
Vishwanatha Subbanna5fe31d42017-01-09 15:00:38 +05301SUMMARY = "Phosphor LED Group Management Daemon"
2DESCRIPTION = "Daemon to cater to triggering actions on LED groups"
Vishwanatha Subbanna5fe31d42017-01-09 15:00:38 +05303PR = "r1"
4
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +05305require ${PN}.inc
Vishwanatha Subbanna5fe31d42017-01-09 15:00:38 +05306
Dhruvaraj Subhashchandran6a1b0fc2017-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
Brad Bishopb0581b52018-04-11 11:43:28 -040015PACKAGE_BEFORE_PN += "${LED_MGR_PACKAGES}"
16ALLOW_EMPTY_${PN} = "1"
Dhruvaraj Subhashchandran6a1b0fc2017-04-27 05:29:56 -050017
18DBUS_PACKAGES = "${PN}-ledmanager"
19
20SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}"
21
Vishwanatha Subbanna5fe31d42017-01-09 15:00:38 +053022DEPENDS += "python-pyyaml-native"
23DEPENDS += "autoconf-archive-native"
24DEPENDS += "sdbusplus sdbusplus-native"
Ratan Gupta0e642912017-03-14 14:50:04 +053025DEPENDS += "phosphor-logging"
26
Vishwanatha Subbanna7f07e7d2017-02-11 22:10:23 +053027DEPENDS += "virtual/${PN}-config-native"
Dhruvaraj Subhashchandran6a1b0fc2017-04-27 05:29:56 -050028RDEPENDS_${PN}-ledmanager += "libsystemd"
29RDEPENDS_${PN}-ledmanager += "phosphor-logging"
30
31RDEPENDS_${PN}-faultmonitor += "libsystemd"
32RDEPENDS_${PN}-faultmonitor += "phosphor-logging"
Vishwanatha Subbanna5fe31d42017-01-09 15:00:38 +053033
Vishwanatha Subbanna5fe31d42017-01-09 15:00:38 +053034S = "${WORKDIR}/git"
35
Dhruvaraj Subhashchandran6a1b0fc2017-04-27 05:29:56 -050036FILES_${PN}-ledmanager += "${sbindir}/phosphor-ledmanager"
37FILES_${PN}-faultmonitor += "${sbindir}/phosphor-fru-fault-monitor"
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053038
Dhruvaraj Subhashchandran6a1b0fc2017-04-27 05:29:56 -050039DBUS_SERVICE_${PN}-ledmanager += "xyz.openbmc_project.LED.GroupManager.service"
40
41SYSTEMD_SERVICE_${PN}-ledmanager += "obmc-led-group-start@.service obmc-led-group-stop@.service"
42SYSTEMD_SERVICE_${PN}-faultmonitor += "obmc-fru-fault-monitor.service"
43
44SYSTEMD_LINK_${PN}-ledmanager += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@bmc_booted.service"
Vishwanatha Subbanna95b31512017-03-27 14:36:58 +053045
46STATES = "start stop"
47TMPLFMT = "obmc-led-group-{0}@.service"
48TGTFMT = "obmc-power-{0}@0.target"
49INSTFMT = "obmc-led-group-{0}@power_on.service"
50FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}"
Dhruvaraj Subhashchandran6a1b0fc2017-04-27 05:29:56 -050051SYSTEMD_LINK_${PN}-ledmanager += "${@compose_list(d, 'FMT', 'STATES')}"
52
Vishwanatha Subbannae922ca62017-07-19 02:25:13 -050053# Install the override to set up a Conflicts relation
54SYSTEMD_OVERRIDE_${PN}-ledmanager += "bmc_booted.conf:obmc-led-group-start@bmc_booted.service.d/bmc_booted.conf"
Vishwanatha Subbanna95b31512017-03-27 14:36:58 +053055
Vishwanatha Subbanna96d83652017-01-23 16:04:35 +053056EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}"