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 | |
| 14 | SRC_URI += "git://github.com/openbmc/mboxbridge.git;protocol=https" |
| 15 | |
| 16 | SRC_URI += "file://99-aspeed-mbox.rules" |
| 17 | SRC_URI += "file://aspeed-lpc-ctrl-h.patch" |
| 18 | |
| 19 | SRCREV="8cb799c2d6c2675959e80f2a7b88610aa4f4817a" |
| 20 | |
| 21 | MBOXD_FLASH_SIZE ??= "32M" |
| 22 | SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" |
| 23 | |
| 24 | # Hacks because ${STAGING_KERNEL_DIR} points to the kernel source tree, not the |
| 25 | # installed, pre-processed headers. Requires the aspeed-lpc-ctrl-h patch above. |
| 26 | CFLAGS_append = "-I include" |
| 27 | |
| 28 | do_install_append() { |
| 29 | install -d ${D}/lib/udev/rules.d |
| 30 | install -m 0644 ${WORKDIR}/99-aspeed-mbox.rules ${D}/lib/udev/rules.d |
| 31 | } |
Matt Spinler | f96194c | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 32 | |
| 33 | TMPL = "mboxd-reload@.service" |
| 34 | TGTFMT = "obmc-chassis-stop@{0}.target" |
| 35 | INSTFMT = "mboxd-reload@{0}.service" |
| 36 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 37 | |
| 38 | SYSTEMD_SERVICE_${PN} += "mboxd.service" |
| 39 | SYSTEMD_SERVICE_${PN} += "mboxd-reload@.service" |
| 40 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |