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 |
| 8 | inherit obmc-phosphor-event-mgmt |
Brad Bishop | 745f13b | 2016-08-30 15:06:19 -0400 | [diff] [blame] | 9 | inherit obmc-phosphor-dbus-service |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 10 | inherit obmc-phosphor-c-daemon |
| 11 | |
Patrick Williams | 8592c8c | 2016-08-30 12:30:23 -0500 | [diff] [blame] | 12 | TARGET_CXXFLAGS += " -std=c++11 -fpic" |
| 13 | TARGET_CFLAGS += " -fpic" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 14 | |
Chris Austen | 3fef076 | 2015-10-30 15:59:47 -0500 | [diff] [blame] | 15 | SRC_URI += "git://github.com/openbmc/phosphor-event" |
| 16 | |
Patrick Williams | e43eee7 | 2016-08-30 12:30:03 -0500 | [diff] [blame] | 17 | SRCREV = "059b35e1eabdd87ad02b4343692789386c134082" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 18 | |
| 19 | RDEPENDS_${PN} += "libsystemd" |
| 20 | DEPENDS += "systemd" |
| 21 | |
Brad Bishop | 745f13b | 2016-08-30 15:06:19 -0400 | [diff] [blame] | 22 | DBUS_SERVICE_${PN} = "org.openbmc.records.events.service" |
| 23 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/eventd/eventd.conf" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 24 | |
| 25 | S = "${WORKDIR}/git" |
| 26 | INSTALL_NAME = "event_messaged" |
| 27 | |
| 28 | do_install() { |
Chris Austen | e6be0e3 | 2016-02-08 23:00:29 -0600 | [diff] [blame] | 29 | install -d ${D}/var/lib/obmc/events/ |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 30 | install -m 0755 -d ${D}${sbindir} |
Brad Bishop | 745f13b | 2016-08-30 15:06:19 -0400 | [diff] [blame] | 31 | install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/phosphor-eventd |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 32 | } |