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" |
| 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
Patrick Williams | 5fddfb8 | 2017-01-25 07:13:21 -0600 | [diff] [blame] | 14 | SRC_URI += "git://github.com/openbmc/mboxbridge.git" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 15 | |
| 16 | SRC_URI += "file://99-aspeed-mbox.rules" |
Andrew Jeffery | a944a4b | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 17 | SRC_URI += "file://99-aspeed-lpc-ctrl.rules" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 18 | SRC_URI += "file://aspeed-lpc-ctrl-h.patch" |
| 19 | |
Patrick Williams | 127ffc0 | 2017-03-09 16:00:13 -0600 | [diff] [blame] | 20 | SRCREV="1974c6f9e61fb194580b1874b3e88f612e5c4ba6" |
Cyril Bur | 9a3f008 | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 21 | |
| 22 | MBOXD_FLASH_SIZE ??= "32M" |
| 23 | SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" |
| 24 | |
| 25 | # Hacks because ${STAGING_KERNEL_DIR} points to the kernel source tree, not the |
| 26 | # installed, pre-processed headers. Requires the aspeed-lpc-ctrl-h patch above. |
| 27 | CFLAGS_append = "-I include" |
| 28 | |
| 29 | do_install_append() { |
| 30 | install -d ${D}/lib/udev/rules.d |
| 31 | 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] | 32 | 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] | 33 | } |
Matt Spinler | f96194c | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 34 | |
| 35 | TMPL = "mboxd-reload@.service" |
Andrew Geissler | 3fe235f | 2017-01-30 13:41:05 -0600 | [diff] [blame] | 36 | TGTFMT = "obmc-power-chassis-off@{0}.target" |
Matt Spinler | f96194c | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 37 | INSTFMT = "mboxd-reload@{0}.service" |
| 38 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 39 | |
| 40 | SYSTEMD_SERVICE_${PN} += "mboxd.service" |
| 41 | SYSTEMD_SERVICE_${PN} += "mboxd-reload@.service" |
| 42 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |