Initial commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="misc", KERNEL=="aspeed-lpc-ctrl", TAG+="systemd"
|
||||
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Reload mboxd during power on
|
||||
Wants=obmc-host-start-pre@%i.target
|
||||
Before=obmc-host-start-pre@%i.target
|
||||
Wants=mapper-wait@-org-openbmc-mboxd.service
|
||||
After=mapper-wait@-org-openbmc-mboxd.service
|
||||
Conflicts=obmc-host-stop@%i.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/env mboxctl --reset
|
||||
SyslogIdentifier=mboxctl
|
||||
|
||||
[Install]
|
||||
WantedBy=obmc-host-startmin@%i.target
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Phosphor MBOX Daemon
|
||||
BindsTo=dev-aspeed\x2dlpc\x2dctrl.device
|
||||
After=dev-aspeed\x2dlpc\x2dctrl.device
|
||||
Requires=xyz.openbmc_project.Control.Host.service
|
||||
After=xyz.openbmc_project.Control.Host.service
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/env mboxd --flash {FLASH_SIZE} --window-size 1M
|
||||
SyslogIdentifier=mboxd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,37 @@
|
||||
SUMMARY = "Phosphor OpenBMC MBOX Daemon"
|
||||
DESCRIPTION = "Phosphor OpenBMC MBOX Daemon"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
|
||||
DEPENDS += "autoconf-archive-native"
|
||||
DEPENDS += "systemd"
|
||||
DEPENDS += "phosphor-logging"
|
||||
PROVIDES += "mboxctl"
|
||||
SRCREV = "68a24c9ea5ce11c87fab22a3f4648c7d88c98fee"
|
||||
# Enable virtual-pnor by DISTRO_FEATURE openpower-virtual-pnor.
|
||||
PACKAGECONFIG:append:df-openpower-virtual-pnor = " virtual-pnor"
|
||||
PACKAGECONFIG[virtual-pnor] = "--enable-virtual-pnor,--disable-virtual-pnor"
|
||||
PV = "1.0+git${SRCPV}"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "git://github.com/openbmc/hiomapd.git;branch=master;protocol=https"
|
||||
SRC_URI += "file://99-aspeed-lpc-ctrl.rules"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
SYSTEMD_SUBSTITUTIONS += "FLASH_SIZE:${MBOXD_FLASH_SIZE}:${PN}.service"
|
||||
SYSTEMD_SERVICE:${PN} += "mboxd.service"
|
||||
SYSTEMD_SERVICE:${PN} += "mboxd-reload@.service"
|
||||
SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}/${nonarch_base_libdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/99-aspeed-lpc-ctrl.rules ${D}/${nonarch_base_libdir}/udev/rules.d
|
||||
}
|
||||
|
||||
MBOXD_FLASH_SIZE ??= "32M"
|
||||
TMPL = "mboxd-reload@.service"
|
||||
TGTFMT = "obmc-host-startmin@{0}.target"
|
||||
INSTFMT = "mboxd-reload@{0}.service"
|
||||
FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}"
|
||||
Reference in New Issue
Block a user