summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc1
-rw-r--r--meta-phosphor/classes/obmc-phosphor-image.bbclass3
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service14
-rw-r--r--meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb7
-rw-r--r--meta-phosphor/conf/distro/include/phosphor-defaults.inc1
-rw-r--r--meta-phosphor/conf/distro/openbmc-phosphor.conf1
6 files changed, 27 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc b/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
index 21b95473f..d6efd6c37 100644
--- a/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
+++ b/meta-openbmc-machines/meta-openpower/conf/machine/include/openpower.inc
@@ -8,6 +8,7 @@ OBMC_MACHINE_FEATURES += "\
openpower-pflash \
obmc-host-state-mgmt \
obmc-chassis-state-mgmt \
+ obmc-bmc-state-mgmt \
"
VIRTUAL-RUNTIME_skeleton_workbook = "${MACHINE}-config"
diff --git a/meta-phosphor/classes/obmc-phosphor-image.bbclass b/meta-phosphor/classes/obmc-phosphor-image.bbclass
index 4082b9df9..c2455b874 100644
--- a/meta-phosphor/classes/obmc-phosphor-image.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-image.bbclass
@@ -14,6 +14,7 @@
# - obmc-logging - OpenBMC logging management
# - obmc-host-state-mgmt - OpenBMC Host State Management
# - obmc-chassis-state-mgmt - OpenBMC Chassis State Management
+# - obmc-bmc-state-mgmt - OpenBMC BMC State Management
inherit core-image
inherit obmc-phosphor-license
@@ -32,6 +33,7 @@ FEATURE_PACKAGES_obmc-logging-mgmt ?= "${@df_enabled('obmc-logging-mgmt', 'virtu
FEATURE_PACKAGES_obmc-host-ctl ?= "${@cf_enabled('obmc-host-ctl', 'virtual-obmc-host-ctl', d)}"
FEATURE_PACKAGES_obmc-host-state-mgmt ?= "${@cf_enabled('obmc-host-state-mgmt', 'virtual-obmc-host-state-mgmt', d)}"
FEATURE_PACKAGES_obmc-chassis-state-mgmt ?= "${@cf_enabled('obmc-chassis-state-mgmt', 'virtual-obmc-chassis-state-mgmt', d)}"
+FEATURE_PACKAGES_obmc-bmc-state-mgmt ?= "${@cf_enabled('obmc-bmc-state-mgmt', 'virtual-obmc-bmc-state-mgmt', d)}"
# Install entire Phosphor application stack by default
IMAGE_FEATURES += " \
@@ -49,6 +51,7 @@ IMAGE_FEATURES += " \
ssh-server-dropbear \
obmc-host-state-mgmt \
obmc-chassis-state-mgmt \
+ obmc-bmc-state-mgmt \
"
CORE_IMAGE_EXTRA_INSTALL_append = " bash \
diff --git a/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
new file mode 100644
index 000000000..e3034e3e7
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/state/files/xyz.openbmc_project.State.BMC.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Phosphor BMC State Manager
+Wants=mapper-wait@-org-openbmc-managers-System.service
+After=mapper-wait@-org-openbmc-managers-System.service
+Before=mapper-wait@-xyz-openbmc_project-state-bmc.service
+
+[Service]
+ExecStart={sbindir}/phosphor-bmc-state-manager
+Restart=always
+Type=dbus
+BusName={BUSNAME}
+
+[Install]
+WantedBy={SYSTEMD_DEFAULT_TARGET}
diff --git a/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb b/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb
index 176c42b91..390ad49b2 100644
--- a/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb
+++ b/meta-phosphor/common/recipes-phosphor/state/phosphor-state-manager.bb
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
STATE_MGR_PACKAGES = " \
${PN}-host \
${PN}-chassis \
+ ${PN}-bmc \
"
PACKAGES =+ "${STATE_MGR_PACKAGES}"
DBUS_PACKAGES = "${STATE_MGR_PACKAGES}"
@@ -27,6 +28,7 @@ DEPENDS += "phosphor-logging"
RDEPENDS_${PN}-host += "libsystemd"
RDEPENDS_${PN}-chassis += "libsystemd"
+RDEPENDS_${PN}-bmc += "libsystemd"
PROVIDES += "virtual/obmc-host-state-mgmt"
RPROVIDES_${PN}-host += "virtual-obmc-host-state-mgmt"
@@ -38,6 +40,11 @@ RPROVIDES_${PN}-chassis += "virtual-obmc-chassis-state-mgmt"
FILES_${PN}-chassis = "${sbindir}/phosphor-chassis-state-manager"
DBUS_SERVICE_${PN}-chassis += "xyz.openbmc_project.State.Chassis.service"
+PROVIDES += "virtual/obmc-bmc-state-mgmt"
+RPROVIDES_${PN}-bmc += "virtual-obmc-bmc-state-mgmt"
+FILES_${PN}-bmc = "${sbindir}/phosphor-bmc-state-manager"
+DBUS_SERVICE_${PN}-bmc += "xyz.openbmc_project.State.BMC.service"
+
SRC_URI += "git://github.com/openbmc/phosphor-state-manager"
SRCREV = "d613b8166a3c3dc652badf8d8c52e74492941f28"
diff --git a/meta-phosphor/conf/distro/include/phosphor-defaults.inc b/meta-phosphor/conf/distro/include/phosphor-defaults.inc
index f5263bbbb..5bada924e 100644
--- a/meta-phosphor/conf/distro/include/phosphor-defaults.inc
+++ b/meta-phosphor/conf/distro/include/phosphor-defaults.inc
@@ -21,6 +21,7 @@ PREFERRED_PROVIDER_virtual/obmc-settings-mgmt ?= "phosphor-settings"
PREFERRED_PROVIDER_virtual/obmc-logging-mgmt ?= "phosphor-logging"
PREFERRED_PROVIDER_virtual/obmc-host-state-mgmt ?= "phosphor-state-manager"
PREFERRED_PROVIDER_virtual/obmc-chassis-state-mgmt ?= "phosphor-state-manager"
+PREFERRED_PROVIDER_virtual/obmc-bmc-state-mgmt ?= "phosphor-state-manager"
# virtual/phosphor-ipmi-fru-config
#
diff --git a/meta-phosphor/conf/distro/openbmc-phosphor.conf b/meta-phosphor/conf/distro/openbmc-phosphor.conf
index 06df823ce..b177b9e10 100644
--- a/meta-phosphor/conf/distro/openbmc-phosphor.conf
+++ b/meta-phosphor/conf/distro/openbmc-phosphor.conf
@@ -36,6 +36,7 @@ DISTRO_FEATURES = "\
avahi \
obmc-host-state-mgmt \
obmc-chassis-state-mgmt \
+ obmc-bmc-state-mgmt \
${DISTRO_FEATURES_LIBC} \
"