Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC MBOX Daemon" |
| 2 | DESCRIPTION = "Phosphor OpenBMC MBOX Daemon" |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 6 | |
| 7 | inherit autotools pkgconfig |
| 8 | inherit obmc-phosphor-systemd |
| 9 | |
| 10 | DEPENDS += "autoconf-archive-native" |
Andrew Jeffery | 928084f | 2017-04-21 10:18:24 +0930 | [diff] [blame] | 11 | DEPENDS += "systemd" |
Andrew Jeffery | aef4ced | 2017-04-18 16:30:10 +0930 | [diff] [blame] | 12 | RDEPENDS_${PN} += "libsystemd" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
Patrick Williams | 5fddfb8 | 2017-01-25 07:13:21 -0600 | [diff] [blame] | 16 | SRC_URI += "git://github.com/openbmc/mboxbridge.git" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 17 | |
| 18 | SRC_URI += "file://99-aspeed-mbox.rules" |
Andrew Jeffery | a944a4b | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 19 | SRC_URI += "file://99-aspeed-lpc-ctrl.rules" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 20 | SRC_URI += "file://aspeed-lpc-ctrl-h.patch" |
| 21 | |
Patrick Williams | bc995d8 | 2017-05-04 06:50:03 -0500 | [diff] [blame] | 22 | SRCREV="8d65bb444002a715c84aeaaade246a7e60d669c8" |
Andrew Jeffery | aef4ced | 2017-04-18 16:30:10 +0930 | [diff] [blame] | 23 | |
| 24 | PROVIDES += "mboxctl" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 25 | |
| 26 | MBOXD_FLASH_SIZE ??= "32M" |
| 27 | SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" |
| 28 | |
| 29 | # Hacks because ${STAGING_KERNEL_DIR} points to the kernel source tree, not the |
| 30 | # installed, pre-processed headers. Requires the aspeed-lpc-ctrl-h patch above. |
Saqib Khan | be0ee8e | 2017-03-09 10:28:09 -0600 | [diff] [blame] | 31 | CFLAGS_append = " -I include" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 32 | |
| 33 | do_install_append() { |
| 34 | install -d ${D}/lib/udev/rules.d |
| 35 | install -m 0644 ${WORKDIR}/99-aspeed-mbox.rules ${D}/lib/udev/rules.d |
Andrew Jeffery | a944a4b | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 36 | install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/lib/udev/rules.d |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 37 | } |
Matt Spinler | f96194c | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 38 | |
| 39 | TMPL = "mboxd-reload@.service" |
Josh D. King | b57615e | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 40 | TGTFMT = "obmc-chassis-poweroff@{0}.target" |
Matt Spinler | f96194c | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 41 | INSTFMT = "mboxd-reload@{0}.service" |
| 42 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 43 | |
| 44 | SYSTEMD_SERVICE_${PN} += "mboxd.service" |
| 45 | SYSTEMD_SERVICE_${PN} += "mboxd-reload@.service" |
| 46 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |