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 |
| 9 | inherit obmc-phosphor-sdbus-service |
| 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" |
Sergey Solomin | 2461f3c | 2016-08-15 14:21:08 -0500 | [diff] [blame] | 16 | SRC_URI += "file://eventd.conf" |
Chris Austen | 3fef076 | 2015-10-30 15:59:47 -0500 | [diff] [blame] | 17 | |
Patrick Williams | e43eee7 | 2016-08-30 12:30:03 -0500 | [diff] [blame^] | 18 | SRCREV = "059b35e1eabdd87ad02b4343692789386c134082" |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 19 | |
| 20 | RDEPENDS_${PN} += "libsystemd" |
| 21 | DEPENDS += "systemd" |
| 22 | |
| 23 | |
| 24 | S = "${WORKDIR}/git" |
| 25 | INSTALL_NAME = "event_messaged" |
| 26 | |
| 27 | do_install() { |
Chris Austen | e6be0e3 | 2016-02-08 23:00:29 -0600 | [diff] [blame] | 28 | install -d ${D}/var/lib/obmc/events/ |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 29 | install -m 0755 -d ${D}${sbindir} |
| 30 | install -m 0755 ${S}/${INSTALL_NAME} ${D}/${sbindir}/obmc-phosphor-eventd |
Sergey Solomin | 2461f3c | 2016-08-15 14:21:08 -0500 | [diff] [blame] | 31 | install -m 0755 -d ${D}${sysconfdir}/default/eventd |
| 32 | install -m 0644 ${WORKDIR}/eventd.conf ${D}${sysconfdir}/default/eventd/eventd.conf |
Chris Austen | 737b35f | 2015-10-25 00:21:04 -0500 | [diff] [blame] | 33 | } |