Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC MBOX Daemon" |
| 2 | DESCRIPTION = "Phosphor OpenBMC MBOX Daemon" |
| 3 | PR = "r1" |
Patrick Venture | cef2b3b | 2018-10-21 08:26:38 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 7 | |
| 8 | inherit autotools pkgconfig |
| 9 | inherit obmc-phosphor-systemd |
| 10 | |
| 11 | DEPENDS += "autoconf-archive-native" |
Andrew Jeffery | 5ade840 | 2017-04-21 10:18:24 +0930 | [diff] [blame] | 12 | DEPENDS += "systemd" |
Patrick Williams | f55db88 | 2017-06-30 12:01:49 -0500 | [diff] [blame] | 13 | DEPENDS += "phosphor-logging" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 14 | |
| 15 | S = "${WORKDIR}/git" |
| 16 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 17 | SRC_URI += "git://github.com/openbmc/mboxbridge.git;branch=master;protocol=https" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 18 | |
Andrew Jeffery | 2a0cb54 | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 19 | SRC_URI += "file://99-aspeed-lpc-ctrl.rules" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 20 | |
Andrew Geissler | 2c4f2cf | 2021-05-18 01:11:15 +0000 | [diff] [blame] | 21 | SRCREV="5c9264daedf1aff690e1957c4578d8395b549cff" |
Andrew Jeffery | 2c567ba | 2017-04-18 16:30:10 +0930 | [diff] [blame] | 22 | |
| 23 | PROVIDES += "mboxctl" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 24 | |
| 25 | MBOXD_FLASH_SIZE ??= "32M" |
| 26 | SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" |
| 27 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 28 | do_install:append() { |
Anton Blanchard | 782d719 | 2021-08-16 23:51:27 -0600 | [diff] [blame] | 29 | install -d ${D}/${nonarch_base_libdir}/udev/rules.d |
| 30 | install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/${nonarch_base_libdir}/udev/rules.d |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 31 | } |
Matt Spinler | 9f77d28 | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 32 | |
| 33 | TMPL = "mboxd-reload@.service" |
Andrew Geissler | 18e7127 | 2020-01-13 15:57:38 -0600 | [diff] [blame] | 34 | TGTFMT = "obmc-host-startmin@{0}.target" |
Matt Spinler | 9f77d28 | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 35 | INSTFMT = "mboxd-reload@{0}.service" |
| 36 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 37 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 38 | SYSTEMD_SERVICE:${PN} += "mboxd.service" |
| 39 | SYSTEMD_SERVICE:${PN} += "mboxd-reload@.service" |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 40 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}" |
Deepak Kodihalli | dd05b96 | 2017-06-29 09:56:24 -0500 | [diff] [blame] | 41 | |
Adriana Kobylak | e521d80 | 2020-04-02 13:55:18 -0500 | [diff] [blame] | 42 | # Enable virtual-pnor by DISTRO_FEATURE openpower-virtual-pnor. |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 43 | PACKAGECONFIG:append:df-openpower-virtual-pnor = " virtual-pnor" |
Patrick Williams | 74d4dbc | 2017-08-09 16:36:51 -0500 | [diff] [blame] | 44 | PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor" |