1SUMMARY = "Phosphor OpenBMC MBOX Daemon" 2DESCRIPTION = "Phosphor OpenBMC MBOX Daemon" 3PR = "r1" 4PV = "1.0+git${SRCPV}" 5LICENSE = "Apache-2.0" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" 7 8inherit autotools pkgconfig 9inherit obmc-phosphor-systemd 10 11DEPENDS += "autoconf-archive-native" 12DEPENDS += "systemd" 13DEPENDS += "phosphor-logging" 14 15S = "${WORKDIR}/git" 16 17SRC_URI += "git://github.com/openbmc/mboxbridge.git" 18 19SRC_URI += "file://99-aspeed-lpc-ctrl.rules" 20 21SRCREV="5c9264daedf1aff690e1957c4578d8395b549cff" 22 23PROVIDES += "mboxctl" 24 25MBOXD_FLASH_SIZE ??= "32M" 26SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service" 27 28do_install:append() { 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 31} 32 33TMPL = "mboxd-reload@.service" 34TGTFMT = "obmc-host-startmin@{0}.target" 35INSTFMT = "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_HOST_INSTANCES')}" 41 42# Enable virtual-pnor by DISTRO_FEATURE openpower-virtual-pnor. 43PACKAGECONFIG:append:df-openpower-virtual-pnor = " virtual-pnor" 44PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor" 45