blob: 0bf71567a8f5421337566bc7abce521dc2dfb4b2 [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"
Patrick Venture6dc4c9a2018-10-24 12:55:20 -07004PV = "1.0+git${SRCPV}"
Vishwanatha Subbanna08033982017-01-09 15:00:38 +05305
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +05306require ${PN}.inc
Vishwanatha Subbanna08033982017-01-09 15:00:38 +05307
Vishwanatha Subbanna2d8cb272020-03-30 07:22:06 -05008inherit autotools pkgconfig python3native
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -05009inherit obmc-phosphor-dbus-service obmc-phosphor-systemd
10
11LED_MGR_PACKAGES = " \
12 ${PN}-ledmanager \
13 ${PN}-faultmonitor \
14"
15
Brad Bishop196e1fc2018-04-11 11:43:28 -040016PACKAGE_BEFORE_PN += "${LED_MGR_PACKAGES}"
17ALLOW_EMPTY_${PN} = "1"
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050018
19DBUS_PACKAGES = "${PN}-ledmanager"
20
21SYSTEMD_PACKAGES = "${LED_MGR_PACKAGES}"
22
Vishwanatha Subbanna48821f52020-03-30 07:16:17 -050023DEPENDS += "${PYTHON_PN}-native"
24DEPENDS += "${PYTHON_PN}-pyyaml-native"
25DEPENDS += "${PYTHON_PN}-inflection-native"
Vishwanatha Subbanna08033982017-01-09 15:00:38 +053026DEPENDS += "autoconf-archive-native"
Patrick Williams2bebd122020-03-31 16:43:15 -050027DEPENDS += "sdbusplus ${PYTHON_PN}-sdbus++-native"
Brad Bishop26873c92019-03-22 23:41:42 -040028DEPENDS += "systemd"
Ratan Gupta83fff102017-03-14 14:50:04 +053029DEPENDS += "phosphor-logging"
30
Vishwanatha Subbanna8bec8252017-02-11 22:10:23 +053031DEPENDS += "virtual/${PN}-config-native"
Vishwanatha Subbanna08033982017-01-09 15:00:38 +053032
Vishwanatha Subbanna08033982017-01-09 15:00:38 +053033S = "${WORKDIR}/git"
34
Andrew Geissler5c9bbc12019-03-28 20:52:34 +000035FILES_${PN}-ledmanager += "${bindir}/phosphor-ledmanager"
36FILES_${PN}-faultmonitor += "${bindir}/phosphor-fru-fault-monitor"
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053037
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050038DBUS_SERVICE_${PN}-ledmanager += "xyz.openbmc_project.LED.GroupManager.service"
39
40SYSTEMD_SERVICE_${PN}-ledmanager += "obmc-led-group-start@.service obmc-led-group-stop@.service"
41SYSTEMD_SERVICE_${PN}-faultmonitor += "obmc-fru-fault-monitor.service"
42
Patrick Ventured607cfb2019-04-04 12:15:22 -070043SYSTEMD_LINK_${PN}-ledmanager += "../obmc-led-group-start@.service:multi-user.target.wants/obmc-led-group-start@bmc_booted.service"
Vishwanatha Subbannaa075b962017-03-27 14:36:58 +053044
45STATES = "start stop"
46TMPLFMT = "obmc-led-group-{0}@.service"
47TGTFMT = "obmc-power-{0}@0.target"
48INSTFMT = "obmc-led-group-{0}@power_on.service"
49FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}"
Dhruvaraj Subhashchandrane1266ad2017-04-27 05:29:56 -050050SYSTEMD_LINK_${PN}-ledmanager += "${@compose_list(d, 'FMT', 'STATES')}"
51
Vishwanatha Subbanna51f391d2017-07-19 02:25:13 -050052# Install the override to set up a Conflicts relation
53SYSTEMD_OVERRIDE_${PN}-ledmanager += "bmc_booted.conf:obmc-led-group-start@bmc_booted.service.d/bmc_booted.conf"
Vishwanatha Subbannaa075b962017-03-27 14:36:58 +053054
Vishwanatha Subbanna7e84c6e2017-01-23 16:04:35 +053055EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}"