Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC Event Management" |
| 2 | DESCRIPTION = "Phosphor OpenBMC event management reference implementation." |
Chris Austen | 3fef076 | 2015-10-30 15:59:47 -0500 | [diff] [blame] | 3 | HOMEPAGE = "https://github.com/openbmc/phosphor-event" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 4 | PR = "r1" |
| 5 | |
| 6 | |
| 7 | inherit obmc-phosphor-license |
Brad Bishop | 745f13b | 2016-08-30 15:06:19 -0400 | [diff] [blame] | 8 | inherit obmc-phosphor-dbus-service |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 9 | inherit obmc-phosphor-c-daemon |
| 10 | |
Brad Bishop | a715681 | 2016-09-06 22:02:03 -0400 | [diff] [blame^] | 11 | PROVIDES += "virtual/obmc-event-mgmt" |
| 12 | RPROVIDES_${PN} += "virtual-obmc-event-mgmt" |
| 13 | |
Patrick Williams | 8592c8c | 2016-08-30 12:30:23 -0500 | [diff] [blame] | 14 | TARGET_CXXFLAGS += " -std=c++11 -fpic" |
| 15 | TARGET_CFLAGS += " -fpic" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 16 | |
Chris Austen | 3fef076 | 2015-10-30 15:59:47 -0500 | [diff] [blame] | 17 | SRC_URI += "git://github.com/openbmc/phosphor-event" |
| 18 | |
Patrick Williams | e43eee7 | 2016-08-30 12:30:03 -0500 | [diff] [blame] | 19 | SRCREV = "059b35e1eabdd87ad02b4343692789386c134082" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 20 | |
| 21 | RDEPENDS_${PN} += "libsystemd" |
| 22 | DEPENDS += "systemd" |
| 23 | |
Brad Bishop | 745f13b | 2016-08-30 15:06:19 -0400 | [diff] [blame] | 24 | DBUS_SERVICE_${PN} = "org.openbmc.records.events.service" |
| 25 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/eventd/eventd.conf" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 26 | |
| 27 | S = "${WORKDIR}/git" |
| 28 | INSTALL_NAME = "event_messaged" |
| 29 | |
| 30 | do_install() { |
Chris Austen | e6be0e3 | 2016-02-08 23:00:29 -0600 | [diff] [blame] | 31 | install -d ${D}/var/lib/obmc/events/ |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 32 | install -m 0755 -d ${D}${sbindir} |
Brad Bishop | 745f13b | 2016-08-30 15:06:19 -0400 | [diff] [blame] | 33 | install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/phosphor-eventd |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 34 | } |