Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC MBOX Daemon" |
| 2 | DESCRIPTION = "Phosphor OpenBMC MBOX Daemon" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 5 | DEPENDS += "autoconf-archive-native" |
Andrew Jeffery | 5ade840 | 2017-04-21 10:18:24 +0930 | [diff] [blame] | 6 | DEPENDS += "systemd" |
Patrick Williams | f55db88 | 2017-06-30 12:01:49 -0500 | [diff] [blame] | 7 | DEPENDS += "phosphor-logging" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 8 | PROVIDES += "mboxctl" |
| 9 | SRCREV = "5c9264daedf1aff690e1957c4578d8395b549cff" |
| 10 | # Enable virtual-pnor by DISTRO_FEATURE openpower-virtual-pnor. |
| 11 | PACKAGECONFIG:append:df-openpower-virtual-pnor = " virtual-pnor" |
| 12 | PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor" |
| 13 | PV = "1.0+git${SRCPV}" |
| 14 | PR = "r1" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 15 | |
Patrick Williams | 98b4706 | 2022-09-21 11:30:38 -0500 | [diff] [blame] | 16 | SRC_URI += "git://github.com/openbmc/hiomapd.git;branch=master;protocol=https" |
Andrew Jeffery | 2a0cb54 | 2017-01-25 13:17:13 +1030 | [diff] [blame] | 17 | SRC_URI += "file://99-aspeed-lpc-ctrl.rules" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 18 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 19 | S = "${WORKDIR}/git" |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 20 | SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 21 | SYSTEMD_SERVICE:${PN} += "mboxd.service" |
| 22 | SYSTEMD_SERVICE:${PN} += "mboxd-reload@.service" |
| 23 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}" |
| 24 | |
| 25 | inherit autotools pkgconfig |
| 26 | inherit obmc-phosphor-systemd |
Cyril Bur | b73580e | 2017-01-12 18:13:30 +1100 | [diff] [blame] | 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 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 33 | MBOXD_FLASH_SIZE ??= "32M" |
Matt Spinler | 9f77d28 | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 34 | TMPL = "mboxd-reload@.service" |
Andrew Geissler | 18e7127 | 2020-01-13 15:57:38 -0600 | [diff] [blame] | 35 | TGTFMT = "obmc-host-startmin@{0}.target" |
Matt Spinler | 9f77d28 | 2017-01-20 15:32:07 -0600 | [diff] [blame] | 36 | INSTFMT = "mboxd-reload@{0}.service" |
| 37 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |