blob: b15eb4973e29f3018f315477bab4200fe35c0f89 [file] [log] [blame]
Cyril Burb73580e2017-01-12 18:13:30 +11001SUMMARY = "Phosphor OpenBMC MBOX Daemon"
2DESCRIPTION = "Phosphor OpenBMC MBOX Daemon"
3PR = "r1"
Patrick Venturecef2b3b2018-10-21 08:26:38 -07004PV = "1.0+git${SRCPV}"
Cyril Burb73580e2017-01-12 18:13:30 +11005LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
7
8inherit autotools pkgconfig
9inherit obmc-phosphor-systemd
10
11DEPENDS += "autoconf-archive-native"
Andrew Jeffery5ade8402017-04-21 10:18:24 +093012DEPENDS += "systemd"
Patrick Williamsf55db882017-06-30 12:01:49 -050013DEPENDS += "phosphor-logging"
Cyril Burb73580e2017-01-12 18:13:30 +110014
15S = "${WORKDIR}/git"
16
Adriana Kobylak87f59c92018-09-10 11:44:29 -050017SRC_URI += "git://github.com/openbmc/mboxbridge.git"
Cyril Burb73580e2017-01-12 18:13:30 +110018
Andrew Jeffery2a0cb542017-01-25 13:17:13 +103019SRC_URI += "file://99-aspeed-lpc-ctrl.rules"
Cyril Burb73580e2017-01-12 18:13:30 +110020
Andrew Geissler307021d2020-12-01 16:33:09 +000021SRCREV="5ff50e3cbd7702aefc185264e4adfb9952040575"
Andrew Jeffery2c567ba2017-04-18 16:30:10 +093022
23PROVIDES += "mboxctl"
Cyril Burb73580e2017-01-12 18:13:30 +110024
25MBOXD_FLASH_SIZE ??= "32M"
26SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service"
27
Cyril Burb73580e2017-01-12 18:13:30 +110028do_install_append() {
29 install -d ${D}/lib/udev/rules.d
Andrew Jeffery2a0cb542017-01-25 13:17:13 +103030 install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/lib/udev/rules.d
Cyril Burb73580e2017-01-12 18:13:30 +110031}
Matt Spinler9f77d282017-01-20 15:32:07 -060032
33TMPL = "mboxd-reload@.service"
Andrew Geissler18e71272020-01-13 15:57:38 -060034TGTFMT = "obmc-host-startmin@{0}.target"
Matt Spinler9f77d282017-01-20 15:32:07 -060035INSTFMT = "mboxd-reload@{0}.service"
36FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}"
37
38SYSTEMD_SERVICE_${PN} += "mboxd.service"
39SYSTEMD_SERVICE_${PN} += "mboxd-reload@.service"
Andrew Geissler18e71272020-01-13 15:57:38 -060040SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}"
Deepak Kodihallidd05b962017-06-29 09:56:24 -050041
Adriana Kobylake521d802020-04-02 13:55:18 -050042# Enable virtual-pnor by DISTRO_FEATURE openpower-virtual-pnor.
43PACKAGECONFIG_append_df-openpower-virtual-pnor = " virtual-pnor"
Patrick Williams74d4dbc2017-08-09 16:36:51 -050044PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor"