blob: 0cff9e44b76f39f4d45b58c8a2961c1f5669d36a [file] [log] [blame]
Cyril Bur9a3f0082017-01-12 18:13:30 +11001SUMMARY = "Phosphor OpenBMC MBOX Daemon"
2DESCRIPTION = "Phosphor OpenBMC MBOX Daemon"
3PR = "r1"
Patrick Venture281a99e2018-10-21 08:26:38 -07004PV = "1.0+git${SRCPV}"
Cyril Bur9a3f0082017-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 Jeffery928084f2017-04-21 10:18:24 +093012DEPENDS += "systemd"
Patrick Williamsea61a042017-06-30 12:01:49 -050013DEPENDS += "phosphor-logging"
Cyril Bur9a3f0082017-01-12 18:13:30 +110014
15S = "${WORKDIR}/git"
16
Adriana Kobylaka38f5d92018-09-10 11:44:29 -050017SRC_URI += "git://github.com/openbmc/mboxbridge.git"
Cyril Bur9a3f0082017-01-12 18:13:30 +110018
Andrew Jefferya944a4b2017-01-25 13:17:13 +103019SRC_URI += "file://99-aspeed-lpc-ctrl.rules"
Cyril Bur9a3f0082017-01-12 18:13:30 +110020
Andrew Geissler16ada432020-01-31 14:11:17 +000021SRCREV="02821c6ae4b04d21cf0efb175b382c52aad93fc0"
Andrew Jefferyaef4ced2017-04-18 16:30:10 +093022
23PROVIDES += "mboxctl"
Cyril Bur9a3f0082017-01-12 18:13:30 +110024
25MBOXD_FLASH_SIZE ??= "32M"
26SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service"
27
Cyril Bur9a3f0082017-01-12 18:13:30 +110028do_install_append() {
29 install -d ${D}/lib/udev/rules.d
Andrew Jefferya944a4b2017-01-25 13:17:13 +103030 install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/lib/udev/rules.d
Cyril Bur9a3f0082017-01-12 18:13:30 +110031}
Matt Spinlerf96194c2017-01-20 15:32:07 -060032
33TMPL = "mboxd-reload@.service"
Andrew Geissler7d756932020-01-13 15:57:38 -060034TGTFMT = "obmc-host-startmin@{0}.target"
Matt Spinlerf96194c2017-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 Geissler7d756932020-01-13 15:57:38 -060040SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}"
Deepak Kodihallie1aa7fd2017-06-29 09:56:24 -050041
Brad Bishop168ce612018-03-09 00:40:41 -050042# Enable virtual-pnor by DISTRO_FEATURE openpower-ubi-fs.
43PACKAGECONFIG_append_df-openpower-ubi-fs = "virtual-pnor"
Patrick Williams6d641c52017-08-09 16:36:51 -050044PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor"