blob: b5ee156a01c48e5f8a6635efb2ebe72ece79fe90 [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 Geissler5f709592019-10-13 22:51:20 +000021SRCREV="0acc669979cc5b1b66c2c4e5d975c60779bedd81"
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 Geissler4a9dbb22017-07-25 09:12:37 -050034TGTFMT = "obmc-chassis-poweron@{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"
40SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_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"